Versions in this module Expand all Collapse all v0 v0.0.3 Oct 31, 2023 v0.0.2 Oct 31, 2023 v0.0.1 Oct 31, 2023 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) IfZeroExpr() string + func (a *Array) SetVarname(s string) + func (a *Array) TypeName() string + func (a *Array) ZeroExpr() string + func (c *Array) Alias(typ string) + func (c *Array) AllowNil() bool + func (c *Array) Varname() string + type BaseElem struct + Convert bool + ShimFromBase string + ShimMode ShimMode + ShimToBase string + Value Primitive + func Ident(id string) *BaseElem + func (c *BaseElem) Varname() string + func (s *BaseElem) Alias(typ string) + func (s *BaseElem) AllowNil() bool + 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) IfZeroExpr() 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 + func (s *BaseElem) ZeroExpr() string + 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 Elem interface + Alias func(typ string) + AllowNil func() bool + Complexity func() int + Copy func() Elem + IfZeroExpr func() string + SetVarname func(s string) + TypeName func() string + Varname func() string + ZeroExpr 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) AllowNil() bool + func (m *Map) Complexity() int + func (m *Map) Copy() Elem + func (m *Map) IfZeroExpr() string + func (m *Map) SetVarname(s string) + func (m *Map) TypeName() string + func (m *Map) ZeroExpr() string + type Method uint8 + const Decode + const Encode + const Marshal + const Size + const Test + const Unmarshal + const UnmarshalJsonOrMsg + func (m Method) String() string + type Primitive uint8 + const Bool + const Byte + const Bytes + const Complex128 + const Complex64 + const Duration + 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) AllowNil() bool + func (c *Ptr) Varname() string + func (s *Ptr) Complexity() int + func (s *Ptr) Copy() Elem + func (s *Ptr) IfZeroExpr() string + func (s *Ptr) Needsinit() bool + func (s *Ptr) SetVarname(a string) + func (s *Ptr) TypeName() string + func (s *Ptr) ZeroExpr() string + type ShimMode int + const Cast + const Convert + type Slice struct + Els Elem + Index string + func (c *Slice) Alias(typ string) + func (c *Slice) Varname() string + func (s *Slice) AllowNil() bool + func (s *Slice) Complexity() int + func (s *Slice) Copy() Elem + func (s *Slice) IfZeroExpr() string + func (s *Slice) SetVarname(a string) + func (s *Slice) TypeName() string + func (s *Slice) ZeroExpr() string + type Struct struct + AsTuple bool + Fields []StructField + func (c *Struct) Alias(typ string) + func (c *Struct) AllowNil() bool + func (c *Struct) Varname() string + func (s *Struct) AnyHasTagPart(pname string) bool + func (s *Struct) Complexity() int + func (s *Struct) Copy() Elem + func (s *Struct) IfZeroExpr() string + func (s *Struct) SetVarname(a string) + func (s *Struct) TypeName() string + func (s *Struct) ZeroExpr() string + type StructField struct + FieldElem Elem + FieldName string + FieldTag string + FieldTagParts []string + RawTag string + func (sf *StructField) HasTagPart(pname string) bool + type TransformPass func(Elem) Elem + func IgnoreTypename(name string) TransformPass