package config import "github.com/spf13/viper" type Device struct { name string uuid string ownerUser string } type Backup struct { name string targetDeviceName string targetDir string sourceDir string scriptPath string frequency int exeUser string } type Settings struct { systemMountPoint string userMountPoint string } type Devices map[string]Device type Backups map[string]Backup func loadDevice() { v1 := viper.New() v1.SetConfigName("devices") }