Versions in this module Expand all Collapse all v0 v0.0.2 Jan 25, 2023 v0.0.1 Jan 25, 2023 Changes in this version + type ArrayType struct + Type Type + func (ArrayType) IsNillable() bool + func (a ArrayType) Generate(out *Emitter) + type Constant struct + Name string + Type Type + Value interface{} + func (c *Constant) Generate(out *Emitter) + func (c *Constant) GetName() string + type CustomNameType struct + Type string + func (CustomNameType) IsNillable() bool + func (p CustomNameType) Generate(out *Emitter) + type Decl interface + Generate func(out *Emitter) + type Emitter struct + func NewEmitter(maxLineLength uint) *Emitter + func (e *Emitter) Bytes() []byte + func (e *Emitter) Comment(s string) + func (e *Emitter) Indent(n int) + func (e *Emitter) MaxLineLength() uint + func (e *Emitter) Newline() + func (e *Emitter) Print(format string, args ...interface{}) + func (e *Emitter) Println(format string, args ...interface{}) + func (e *Emitter) String() string + type EmptyInterfaceType struct + func (EmptyInterfaceType) Generate(out *Emitter) + func (EmptyInterfaceType) IsNillable() bool + type File struct + FileName string + Package Package + func (p *File) Generate(out *Emitter) + type Fragment func(*Emitter) + func (f Fragment) Generate(out *Emitter) + type Import struct + Name string + QualifiedName string + func (i *Import) Generate(out *Emitter) + type MapType struct + KeyType Type + ValueType Type + func (MapType) IsNillable() bool + func (p MapType) Generate(out *Emitter) + type Method struct + Impl func(*Emitter) + func (m *Method) Generate(out *Emitter) + type Named interface + GetName func() string + type NamedType struct + Decl *TypeDecl + Package *Package + func (t NamedType) Generate(out *Emitter) + func (t NamedType) GetName() string + func (t NamedType) IsNillable() bool + type NullType struct + func (NullType) Generate(out *Emitter) + func (NullType) IsNillable() bool + type Package struct + Comment string + Decls []Decl + Imports []Import + QualifiedName string + func (p *Package) AddDecl(t Decl) + func (p *Package) AddImport(qualifiedName, alias string) + func (p *Package) Generate(out *Emitter) + func (p *Package) Name() string + type PointerType struct + Type Type + func (PointerType) IsNillable() bool + func (p PointerType) Generate(out *Emitter) + type PrimitiveType struct + Type string + func (PrimitiveType) IsNillable() bool + func (p PrimitiveType) Generate(out *Emitter) + type StructField struct + Comment string + DefaultValue interface{} + JSONName string + Name string + SchemaType *schemas.Type + Tags string + Type Type + func (f *StructField) Generate(out *Emitter) + func (f *StructField) GetName() string + type StructType struct + Fields []StructField + RequiredJSONFields []string + func (StructType) IsNillable() bool + func (s *StructType) AddField(f StructField) + func (s *StructType) Generate(out *Emitter) + type Type interface + IsNillable func() bool + func PrimitiveTypeFromJSONSchemaType(jsType string, pointer bool) (Type, error) + func WrapTypeInPointer(t Type) Type + type TypeDecl struct + Comment string + Name string + Type Type + func (td *TypeDecl) Generate(out *Emitter) + func (td *TypeDecl) GetName() string + type Var struct + Name string + Type Type + Value interface{} + func (v *Var) Generate(out *Emitter) + func (v *Var) GetName() string