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
|
|
|
|
}
|