Documentation
¶
Index ¶
- Variables
- func CheckType(typ types.Type, typs ...types.Type) (types.Type, error)
- func Compatible(typ1, typ2 types.Type) bool
- func Convertible(typ1, typ2 types.Type) bool
- func EqualTypes(typs1, typs2 []types.Type) bool
- func ExtractNamed(typ types.Type) *types.Named
- func ExtractType(typ types.Type) (_ []types.Type, inner types.Type)
- func ExtractTypeAll(typ types.Type) (_ []types.Type, inner types.Type)
- func ExtractTypeUnwrapNamed(typ types.Type) (typs []types.Type, inner types.Type)
- func HasPrefixCamel(s string, prefix string) bool
- func TrimNamed(typs []types.Type) []types.Type
- func UnwrapNamed(typ types.Type) types.Type
- type Qualifier
- type StructTag
- type StructTags
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Array types.Type = (*types.Array)(nil) Basic types.Type = (*types.Basic)(nil) Interface types.Type = (*types.Interface)(nil) Map types.Type = (*types.Map)(nil) Named types.Type = (*types.Named)(nil) Pointer types.Type = (*types.Pointer)(nil) Slice types.Type = (*types.Slice)(nil) Struct types.Type = (*types.Struct)(nil) )
Functions ¶
func Compatible ¶
func Convertible ¶
func EqualTypes ¶
func ExtractTypeUnwrapNamed ¶
func HasPrefixCamel ¶
Types ¶
type StructTags ¶
type StructTags []StructTag
func MustParseStructTags ¶
func MustParseStructTags(tag string) StructTags
func ParseStructTags ¶
func ParseStructTags(tag string) (StructTags, error)
ParseStructTags returns the full set of fields in a struct tag in the order they appear in the struct tag.
func (StructTags) Get ¶
func (tags StructTags) Get(name string) string
func (StructTags) String ¶
func (tags StructTags) String() string
Click to show internal directories.
Click to hide internal directories.