gime-bolt/vendor/github.com/casimir/xdg-go/xdg_darwin.go

24 lines
412 B
Go
Raw Normal View History

2018-02-15 13:45:53 +00:00
package xdg
import "os"
func DataHome() string {
return os.Getenv("HOME") + "/Library"
}
func ConfigHome() string {
return os.Getenv("HOME") + "/Library/Preferences"
}
func CacheHome() string {
return os.Getenv("HOME") + "/Library/Caches"
}
func DataDirs() []string {
return []string{"/Library"}
}
func ConfigDirs() []string {
return []string{"/Library/Preferences", "/Library/Application Support"}
}