Documentation
¶
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"`
Policy interface{} `type:"jsonfile"`
}
func main() {
kong.Parse(&cli, kong.NamedMapper("jsonfile", JSONFileMapper))
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.