Documentation
¶
Overview ¶
Package genutil holds what the endpoint layer's writers share: the fields of an input as JSON reads them, and the house layout of a jen group. routegen writes routes and decoders with it, and the command layer's commandgen writes commands with its own copy of the field helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONName ¶
func JSONName( f reflect.StructField, ) string
JSONName is the name of f in JSON: the name of its json tag, or its Go name.
func Multi ¶
Multi lays out a group one item to a line, as the house style writes parameter lists and literals.
func StructFields ¶
func StructFields( t reflect.Type, ) []reflect.StructField
StructFields are the fields of t that a schema has: each exported one whose json name is not "-". A type that is not a struct has none.
Types ¶
This section is empty.