Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = GetConfig(NewGlobalConfig())
Functions ¶
func WriteGlobalInitConfig ¶ added in v0.0.2
func WriteGlobalInitConfig()
func WriteRepoInitConfig ¶ added in v0.0.2
func WriteRepoInitConfig(path string)
Types ¶
type ConfigInfo ¶
type ConfigInfo struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶ added in v0.0.2
func NewDefaultConfig(filename, path string) *ConfigInfo
func NewGlobalConfig ¶ added in v0.0.2
func NewGlobalConfig() *ConfigInfo
func (*ConfigInfo) AddDefault ¶
func (c *ConfigInfo) AddDefault(key string, value any) *ConfigInfo
type NeatConfig ¶ added in v0.0.3
type NeatConfig struct {
// contains filtered or unexported fields
}
func GetConfig ¶ added in v0.0.3
func GetConfig(info *ConfigInfo) NeatConfig
func (*NeatConfig) GetBool ¶ added in v0.0.3
func (a *NeatConfig) GetBool(key string) bool
func (*NeatConfig) GetInt ¶ added in v0.0.3
func (a *NeatConfig) GetInt(key string) int
func (*NeatConfig) GetString ¶ added in v0.0.3
func (a *NeatConfig) GetString(key string) string
func (*NeatConfig) GetStrings ¶ added in v0.0.3
func (a *NeatConfig) GetStrings(key string) []string
Click to show internal directories.
Click to hide internal directories.