Documentation ¶
Index ¶
Constants ¶
View Source
const ThisVar = "c"
ThisVar is used as name for the reference to the converter interface.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JenID ¶
JenID a jennifer code wrapper with extra infos.
func VariableID ¶
VariableID is used, when the ID can be referenced. F.ex it is not a function call.
type Type ¶
type Type struct { T types.Type Interface bool InterfaceType *types.Interface Struct bool StructType *types.Struct Named bool NamedType *types.Named Pointer bool PointerType *types.Pointer PointerInner *Type List bool ListFixed bool ListInner *Type Map bool MapType *types.Map MapKey *Type MapValue *Type Basic bool BasicType *types.Basic }
Type is a helper wrapper for types.Type.
func (Type) ConvertibleTo ¶ added in v0.3.3
func (Type) StructField ¶
StructField returns the type of a struct field.
func (Type) StructFieldLower ¶
StructField returns the type of a struct field ignoring case.
func (*Type) UnescapedID ¶
UnescapedID returns a deteministically generated id that may be used as variable reserved keywords aren't escaped.
Click to show internal directories.
Click to hide internal directories.