Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypePrefixPtr = TypePrefix("*") TypePrefixSlice = TypePrefix("[]") TypePrefixKindPtr = TypePrefixKind("pointer") TypePrefixKindSlice = TypePrefixKind("slice") TypePrefixKindArray = TypePrefixKind("array") TypePrefixKindUnknown = TypePrefixKind("unknown") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Name string Type *Type IsUntitledStruct bool IsUntitledInterface bool Tags []*Tag Comment []string Func *Func Map *Map TypePrefixes []TypePrefix // Schema is only for untitled struct or untitled interface Schema *Schema }
type Schema ¶
type Schema struct { Name string Fields []*Field Type *Type Func *Func Map *Map IsInterface bool TypePrefixes []TypePrefix Comment []string }
Schema is information for defined as type
type Type ¶
type Type struct { Underlying UnderlyingType // xxx/yy.ZZZ // PkgID is package id. PkgID string // xxx/yy PkgPlusName string // yy.ZZZ TypeName string // ZZZ }
Type is type information.
func (*Type) SetPackage ¶
func (t *Type) SetPackage()
SetPackage is method to set PkgID and PkgPlusName by UnderlyingType.
type TypePrefix ¶
type TypePrefix string
func (TypePrefix) ArrayLength ¶
func (t TypePrefix) ArrayLength() (int, bool)
func (TypePrefix) Kind ¶
func (t TypePrefix) Kind() TypePrefixKind
type TypePrefixKind ¶
type TypePrefixKind string
type UnderlyingType ¶
type UnderlyingType string
Click to show internal directories.
Click to hide internal directories.