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

23 lines
368 B
Go

package appdir
import (
"os"
"path/filepath"
)
type dirs struct {
name string
}
func (d *dirs) UserConfig() string {
return filepath.Join(os.Getenv("APPDATA"), d.name)
}
func (d *dirs) UserCache() string {
return filepath.Join(os.Getenv("LOCALAPPDATA"), d.name)
}
func (d *dirs) UserLogs() string {
return filepath.Join(os.Getenv("LOCALAPPDATA"), d.name)
}