Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Json2Go{TypeName: "T"}
Functions ¶
func GenerateCode ¶
GenerateCode generates a Go type definition from a JSON string as jen.Code.
func GenerateCodeFromBytes ¶
GenerateCodeFromBytes generates a Go type definition from a slice of JSON bytes as jen.Code.
func GenerateFromBytes ¶
GenerateFromBytes generates a Go type definition from a slice of JSON bytes.
Types ¶
type Json2Go ¶
func NewJson2Go ¶
func (Json2Go) GenerateCode ¶
GenerateCode generates a Go type definition from a JSON string as jen.Code.
func (Json2Go) GenerateCodeFromBytes ¶
GenerateCodeFromBytes generates a Go type definition from a slice of JSON bytes as jen.Code.
Click to show internal directories.
Click to hide internal directories.