Versions in this module Expand all Collapse all v1 v1.1.3 Oct 21, 2020 v1.1.2 Mar 5, 2020 v1.1.1 Oct 14, 2019 Changes in this version type Array + func (a *Array) IfZeroExpr() string + func (a *Array) ZeroExpr() string type BaseElem + func (s *BaseElem) IfZeroExpr() string + func (s *BaseElem) ZeroExpr() string type Elem + IfZeroExpr func() string + ZeroExpr func() string type Map + func (m *Map) IfZeroExpr() string + func (m *Map) ZeroExpr() string type Ptr + func (s *Ptr) IfZeroExpr() string + func (s *Ptr) ZeroExpr() string type Slice + func (s *Slice) IfZeroExpr() string + func (s *Slice) ZeroExpr() string type Struct + func (s *Struct) AnyHasTagPart(pname string) bool + func (s *Struct) IfZeroExpr() string + func (s *Struct) ZeroExpr() string type StructField + FieldTagParts []string + func (sf *StructField) HasTagPart(pname string) bool v1.1.0 Nov 28, 2018 Changes in this version type BaseElem + ShimMode ShimMode + type Context struct + func (c *Context) ArgsStr() string + func (c *Context) Pop() + func (c *Context) PushString(s string) + func (c *Context) PushVar(s string) + type ShimMode int + const Cast + const Convert type StructField + RawTag string v1.0.2 Jun 27, 2017 v1.0.1 May 10, 2017 Changes in this version + func IsPrintable(e Elem) bool + type Array struct + Els Elem + Index string + Size string + func (a *Array) Complexity() int + func (a *Array) Copy() Elem + func (a *Array) SetVarname(s string) + func (a *Array) TypeName() string + func (c *Array) Alias(typ string) + func (c *Array) Varname() string + type BaseElem struct + Convert bool + ShimFromBase string + ShimToBase string + Value Primitive + func Ident(id string) *BaseElem + func (c *BaseElem) Varname() string + func (s *BaseElem) Alias(typ string) + func (s *BaseElem) BaseName() string + func (s *BaseElem) BaseType() string + func (s *BaseElem) Complexity() int + func (s *BaseElem) Copy() Elem + func (s *BaseElem) FromBase() string + func (s *BaseElem) Needsref(b bool) + func (s *BaseElem) Printable() bool + func (s *BaseElem) Resolved() bool + func (s *BaseElem) SetVarname(a string) + func (s *BaseElem) ToBase() string + func (s *BaseElem) TypeName() string + type Elem interface + Alias func(typ string) + Complexity func() int + Copy func() Elem + SetVarname func(s string) + TypeName func() string + Varname func() string + type Map struct + Keyidx string + Validx string + Value Elem + func (c *Map) Alias(typ string) + func (c *Map) Varname() string + func (m *Map) Complexity() int + func (m *Map) Copy() Elem + func (m *Map) SetVarname(s string) + func (m *Map) TypeName() string + type Method uint8 + const Decode + const Encode + const Marshal + const Size + const Test + const Unmarshal + func (m Method) String() string + type Primitive uint8 + const Bool + const Byte + const Bytes + const Complex128 + const Complex64 + const Ext + const Float32 + const Float64 + const IDENT + const Int + const Int16 + const Int32 + const Int64 + const Int8 + const Intf + const Invalid + const String + const Time + const Uint + const Uint16 + const Uint32 + const Uint64 + const Uint8 + func (k Primitive) String() string + type Printer struct + func NewPrinter(m Method, out io.Writer, tests io.Writer) *Printer + func (p *Printer) ApplyDirective(pass Method, t TransformPass) + func (p *Printer) Print(e Elem) error + type Ptr struct + Value Elem + func (c *Ptr) Alias(typ string) + func (c *Ptr) Varname() string + func (s *Ptr) Complexity() int + func (s *Ptr) Copy() Elem + func (s *Ptr) Needsinit() bool + func (s *Ptr) SetVarname(a string) + func (s *Ptr) TypeName() string + type Slice struct + Els Elem + Index string + func (c *Slice) Alias(typ string) + func (c *Slice) Varname() string + func (s *Slice) Complexity() int + func (s *Slice) Copy() Elem + func (s *Slice) SetVarname(a string) + func (s *Slice) TypeName() string + type Struct struct + AsTuple bool + Fields []StructField + func (c *Struct) Alias(typ string) + func (c *Struct) Varname() string + func (s *Struct) Complexity() int + func (s *Struct) Copy() Elem + func (s *Struct) SetVarname(a string) + func (s *Struct) TypeName() string + type StructField struct + FieldElem Elem + FieldName string + FieldTag string + type TransformPass func(Elem) Elem + func IgnoreTypename(name string) TransformPass