Documentation
¶
Index ¶
Constants ¶
View Source
const ( BasicString = Basic("string") BasicInt = Basic("int") BasicInt32 = Basic("int32") BasicInt64 = Basic("int64") BasicUint = Basic("uint") BasicUint32 = Basic("uint32") BasicUint64 = Basic("uint64") BasicFloat32 = Basic("float32") BasicFloat64 = Basic("float64") BasicBool = Basic("bool") BasicByte = Basic("byte") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Basic ¶
type Basic string
func ParseBasic ¶
func (Basic) GoTypeString ¶
func (Basic) GoTypeStringWithAlias ¶
func (Basic) Unwraps ¶
func (Basic) Unwraps() []FieldTyper
type Custom ¶
type Custom struct { Name string // PkgName if empty — not from another pkg PkgName string // PkgPath if empty — not from another pkg PkgPath string }
func CustomField ¶
func (Custom) GoTypeString ¶
func (Custom) GoTypeStringWithAlias ¶
func (Custom) Unwraps ¶
func (c Custom) Unwraps() []FieldTyper
type FieldTyper ¶
type FieldTyper interface { Kind() Kind Unwraps() []FieldTyper GoTypeString() string GoTypeStringWithAlias(alias string) string Accept(v Visitor) }
func GenericField ¶
func GenericField(genericType FieldTyper, parameterType FieldTyper) FieldTyper
func PtrField ¶
func PtrField(f FieldTyper) FieldTyper
func SliceField ¶
func SliceField(f FieldTyper) FieldTyper
type Generic ¶
type Generic struct { GenericType FieldTyper ParameterType FieldTyper }
func (Generic) GoTypeString ¶
func (Generic) GoTypeStringWithAlias ¶
func (Generic) Unwrap ¶
func (g Generic) Unwrap() FieldTyper
func (Generic) Unwraps ¶
func (g Generic) Unwraps() []FieldTyper
type Ptr ¶
type Ptr struct {
Field FieldTyper
}
func (Ptr) GoTypeString ¶
func (Ptr) GoTypeStringWithAlias ¶
func (Ptr) Unwrap ¶
func (p Ptr) Unwrap() FieldTyper
func (Ptr) Unwraps ¶
func (p Ptr) Unwraps() []FieldTyper
type Slice ¶
type Slice struct {
Field FieldTyper
}
func (Slice) GoTypeString ¶
func (Slice) GoTypeStringWithAlias ¶
func (Slice) Unwrap ¶
func (s Slice) Unwrap() FieldTyper
func (Slice) Unwraps ¶
func (s Slice) Unwraps() []FieldTyper
Click to show internal directories.
Click to hide internal directories.