localconfig/configfile_unix.go

13 lines
259 B
Go
Raw Normal View History

2023-01-28 13:40:19 +01:00
//go:build linux || darwin
// +build linux darwin
package localconfig
import "os"
// Configfile is the OS dependent config file location
2023-01-28 19:26:58 +01:00
func GetConfigPath(filename string) string {
2023-01-28 13:40:19 +01:00
home, _ := os.UserHomeDir()
return home + "/." + filename
}