config

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL