Documentation ¶
Index ¶
- func IsPrimitiveValue(value domain.Value) bool
- type GoField
- type GoGen
- func (g *GoGen) Generate(packageName string) string
- func (g *GoGen) GetOutPath(packageName string) string
- func (g *GoGen) InsertObject(name string, object domain.Object)
- func (g *GoGen) ParseNonPrimitiveValue(key string, value domain.Value) (gtype GoType)
- func (g *GoGen) ParseObject(name string, object domain.Object) GoType
- type GoGenObject
- type GoPrimitives
- type GoStruct
- type GoType
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrimitiveValue ¶
IsPrimitiveValue checks if the value is a primitive value
Types ¶
type GoGen ¶
GoGen represents the generator for Go It contains the maps different structs and the package name
func (*GoGen) GetOutPath ¶
func (*GoGen) ParseNonPrimitiveValue ¶
ParseNonPrimitiveValue parses a non primitive value
type GoGenObject ¶
GoGenObject represents an object on the json
type GoPrimitives ¶
type GoPrimitives uint8
const ( GO_TYPE_INT GoPrimitives = iota GO_TYPE_STRING GoPrimitives = iota GO_TYPE_FLOAT GoPrimitives = iota GO_TYPE_BOOL GoPrimitives = iota GO_TYPE_INTERFACE GoPrimitives = iota )
type GoType ¶
type GoType struct { IsPrimitive bool PrimitiveType GoPrimitives CustomType string // contains filtered or unexported fields }
GoType represents a type in Go It can be a primitive type or a complex type
func ParsePrimitiveValue ¶
Click to show internal directories.
Click to hide internal directories.