Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v0.6.1"
Variables ¶
View Source
var ConfigName = "config.json"
View Source
var DefaultConfigDirPath = path.Join(HomeDirPath, configDirName)
View Source
var DefaultConfigPath = path.Join(HomeDirPath, configDirName, ConfigName)
View Source
var DefaultConfigYaml = `` /* 538-byte string literal not displayed */
View Source
var HomeDirPath, _ = homedir.Dir()
Functions ¶
func GetVersion ¶ added in v0.6.0
func GetVersion() (v string)
func NewConfigPathService ¶ added in v0.6.0
func NewConfigPathService() (svc interfaces.WithConfigPath)
Types ¶
type Config ¶
type Config struct {
Name string
}
func (*Config) WatchConfig ¶
func (c *Config) WatchConfig()
type InitConfigOptions ¶ added in v0.6.0
type InitConfigOptions struct {
Name string
}
type PathService ¶ added in v0.6.0
type PathService struct {
// contains filtered or unexported fields
}
func (*PathService) GetConfigPath ¶ added in v0.6.0
func (svc *PathService) GetConfigPath() (path string)
func (*PathService) SetConfigPath ¶ added in v0.6.0
func (svc *PathService) SetConfigPath(path string)
Click to show internal directories.
Click to hide internal directories.