Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultOutputFile string = "types.go"
DefaultOutputFile is the name of the default output file
View Source
const DefaultPackage string = "main"
DefaultPackage is the name of the default package
View Source
const DefaultRootName string = "Root"
DefaultRootName is the default name of the top-level JSON object
View Source
const DefaultTimeFormat string = "RFC3339"
DefaultTimeFormat is the default time format to parse with.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Debugger *log.Logger
URL string
File string
RootName string
PackageName string
OutputFileName string
TimeFormat string
OmitEmpty bool
Alphabetical bool
}
Config presents Gen configurations.
type Gen ¶
type Gen struct {
// contains filtered or unexported fields
}
Gen presents a generate tool for json2go.
Click to show internal directories.
Click to hide internal directories.