Documentation
¶
Index ¶
- func FlagConfigPath(path ...string) string
- func InitialNullVal(v interface{}) error
- func MarshalToFile(config interface{}, filename string) error
- func ParseDefaultVal(v interface{}) error
- func PrintJSON(config interface{}) (string, error)
- func ReadConfig(filename string, config interface{}) error
- func UnmarshalDefaultVal(config interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagConfigPath ¶
func InitialNullVal ¶ added in v0.3.9
func InitialNullVal(v interface{}) error
NullVal if tag have null, field[i] set golang default value
func MarshalToFile ¶
MarshalToFile struct to file
func ParseDefaultVal ¶ added in v0.3.9
func ParseDefaultVal(v interface{}) error
ParseDefaultVal if tag have defValTag, field[i] setting defval="" value
func ReadConfig ¶
ReadConfig read config filename
func UnmarshalDefaultVal ¶
func UnmarshalDefaultVal(config interface{}) error
UnmarshalDefaultVal struct, 'defval' tag to default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.