Initial commit

This commit is contained in:
ycc
2023-01-28 13:40:19 +01:00
parent aa5c0a0325
commit 455fbeaf8a
6 changed files with 221 additions and 0 deletions

12
configfile_unix.go Normal file
View 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
}