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 StructField ¶
StructField holds the type of a struct field and its name.
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) StructField ¶
func (t Type) StructField(name string, ignoreCase bool, ignore map[string]struct{}) (*StructField, error)
StructField returns the type of a struct field and its name upon successful match or an error if it is not found. This method will also return a detailed error if matchIgnoreCase is enabled and there are multiple non-exact matches.
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.