Documentation
¶
Index ¶
- type ArrayType
- type Constant
- type CustomNameType
- type Decl
- type Emitter
- type EmptyInterfaceType
- type File
- type Fragment
- type Import
- type MapType
- type Method
- type Named
- type NamedType
- type NullType
- type Package
- type PointerType
- type PrimitiveType
- type StructField
- type StructType
- type Type
- type TypeDecl
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomNameType ¶
type CustomNameType struct {
Type string
}
func (CustomNameType) Generate ¶
func (p CustomNameType) Generate(out *Emitter)
func (CustomNameType) IsNillable ¶
func (CustomNameType) IsNillable() bool
type EmptyInterfaceType ¶
type EmptyInterfaceType struct{}
func (EmptyInterfaceType) Generate ¶
func (EmptyInterfaceType) Generate(out *Emitter)
func (EmptyInterfaceType) IsNillable ¶
func (EmptyInterfaceType) IsNillable() bool
type Method ¶
type Method struct {
Impl func(*Emitter)
}
Method defines a method and how to generate it.
type NamedType ¶
func (NamedType) IsNillable ¶
type PointerType ¶
type PointerType struct {
Type Type
}
func (PointerType) Generate ¶
func (p PointerType) Generate(out *Emitter)
func (PointerType) IsNillable ¶
func (PointerType) IsNillable() bool
type PrimitiveType ¶
type PrimitiveType struct {
Type string
}
func (PrimitiveType) Generate ¶
func (p PrimitiveType) Generate(out *Emitter)
func (PrimitiveType) IsNillable ¶
func (PrimitiveType) IsNillable() bool
type StructField ¶
type StructField struct { Name string Type Type Comment string Tags string JSONName string DefaultValue interface{} }
func (*StructField) Generate ¶
func (f *StructField) Generate(out *Emitter)
func (*StructField) GetName ¶
func (f *StructField) GetName() string
type StructType ¶
type StructType struct { Fields []StructField RequiredJSONFields []string }
func (*StructType) AddField ¶
func (s *StructType) AddField(f StructField)
func (*StructType) Generate ¶
func (s *StructType) Generate(out *Emitter)
func (StructType) IsNillable ¶
func (StructType) IsNillable() bool
Click to show internal directories.
Click to hide internal directories.