xmtop/vendor/github.com/ProtonMail/go-appdir/appdir_darwin.go
2019-01-14 20:19:17 -08:00

23 lines
423 B
Go

package appdir
import (
"os"
"path/filepath"
)
type dirs struct {
name string
}
func (d *dirs) UserConfig() string {
return filepath.Join(os.Getenv("HOME"), "Library", "Application Support", d.name)
}
func (d *dirs) UserCache() string {
return filepath.Join(os.Getenv("HOME"), "Library", "Caches", d.name)
}
func (d *dirs) UserLogs() string {
return filepath.Join(os.Getenv("HOME"), "Library", "Logs", d.name)
}