23 lines
368 B
Go
Raw Normal View History

2019-01-14 20:18:13 -08:00
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)
}