13 lines
255 B
Go
13 lines
255 B
Go
//go:build linux || darwin
|
|
// +build linux darwin
|
|
|
|
package localconfig
|
|
|
|
import "os"
|
|
|
|
// Configfile is the OS dependent config file location
|
|
func getConfig(filename string) string {
|
|
home, _ := os.UserHomeDir()
|
|
return home + "/." + filename
|
|
}
|