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 ¶
func Accessible ¶
Accessible checks if obj is accessible within outputPackagePath.
Types ¶
type Enum ¶
func (Enum) SortedMembers ¶
type FieldSources ¶
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 LookupOnPrimitiveError ¶
func (*LookupOnPrimitiveError) Error ¶
func (err *LookupOnPrimitiveError) Error() string
type NoMatchError ¶
type NoMatchError struct{ Field string }
func (*NoMatchError) Error ¶
func (err *NoMatchError) Error() string
type SimpleStructField ¶
func FindExactField ¶
func FindExactField(source *Type, name string) (*SimpleStructField, error)
type StructField ¶
StructField holds the type of a struct field and its name.
func FindField ¶
func FindField(name string, ignoreCase bool, source *Type, additionalFieldSources []FieldSources) (*StructField, error)
type Type ¶
type Type struct { String string 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 Signature bool SignatureType *types.Signature Func bool FuncType *types.Func // contains filtered or unexported fields }
Type is a helper wrapper for types.Type.
func (*Type) AsPointerType ¶
func (*Type) AssignableTo ¶
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.