Documentation
¶
Overview ¶
Package kongx provides utility functions to github.com/alecthomas/kong such as parsing field value from a JSON file via the CustomMapper JSONFileMapper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONFileMapper = kong.MapperFunc(decodeJSONFile)
JSONFileMapper implements kong.MapperValue to decode a JSON file into a struct field.
var cli struct {
Profile Profile `type:"jsonfile"`
}
func main() {
kong.Parse(&cli, kong.NamedMapper("jsonfile", kongx.JSONFileMapper))
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.