Initial commit
This commit is contained in:
12
configfile_unix.go
Normal file
12
configfile_unix.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//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
|
||||
}
|
Reference in New Issue
Block a user