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

18 lines
441 B
Go

// Get application directories such as config and cache.
package appdir
// Dirs requests application directories paths.
type Dirs interface {
// Get the user-specific config directory.
UserConfig() string
// Get the user-specific cache directory.
UserCache() string
// Get the user-specific logs directory.
UserLogs() string
}
// New creates a new App with the provided name.
func New(name string) Dirs {
return &dirs{name: name}
}