Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTypes ¶
GenerateTypes parses the provided JSON payload and returns the matching Go types.
func GenerateTypesFile ¶
GenerateTypesFile parses the provided JSON payload and generates matching Go types file.
Types ¶
type Config ¶
type Config struct { RootName string PackageName string OutputFileName string OutputDirectory string TimeFormat string OmitEmpty bool Alphabetical bool Debugger *log.Logger }
Config presents configurations to CreateTypes
type TypeItem ¶
TypeItem represents a parsed JSON variable
type TypeItemsMap ¶
TypeItemsMap is a map of TypeItems arrays
Click to show internal directories.
Click to hide internal directories.