Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init initialize config module with and accept confName that is config filename ext is config file extension appName is software name and will use to make search paths for config file config module will search for config files in flowing locations: /etc/<appName> $HOME/.<appName> and beside the executable file
Types ¶
type Bool ¶
type Bool interface {
Bool() bool
}
Bool type interface
func RegisterBool ¶
RegisterBool register a bool variable
type Float ¶
Float type interface
func RegisterFloat32 ¶
RegisterFloat32 register a float32 variable
func RegisterFloat64 ¶
RegisterFloat64 register a float64 variable
type Int ¶
Int type interface
func RegisterInt ¶
RegisterInt register an integer variable
func RegisterInt64 ¶
RegisterInt64 register an int64 variable
func RegisterIntMock ¶
RegisterIntMock mock register int
type String ¶
type String interface {
String() string
}
String type interface
func RegisterString ¶
RegisterString register an string variable
func RegisterStringArrayMock ¶ added in v0.1.81
RegisterStringArrayMock mock register string array
func RegisterStringMock ¶
RegisterStringMock mock register string
type StringSlice ¶ added in v0.1.81
type StringSlice interface {
Slice() []string
}
StringSlice type interface
func RegisterStringSlice ¶ added in v0.1.82
func RegisterStringSlice(key string, defValue []string) StringSlice
RegisterStringSlice register an string variable