18 lines
441 B
Go
Raw Normal View History

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