Documentation
¶
Index ¶
- type GMethod
- type GStructField
- type GType
- func (t *GType) AssignableTo(u Type) bool
- func (t *GType) Comparable() bool
- func (t *GType) ConvertibleTo(u Type) bool
- func (t *GType) Elem() Type
- func (t *GType) Field(i int) StructField
- func (t *GType) FieldByName(name string) (StructField, bool)
- func (t *GType) FieldByNameFunc(match func(string) bool) (StructField, bool)
- func (t *GType) Implements(u Type) bool
- func (t *GType) In(i int) Type
- func (t *GType) IsVariadic() bool
- func (t *GType) Key() Type
- func (t *GType) Kind() reflect.Kind
- func (t *GType) Len() int
- func (t *GType) Method(i int) Method
- func (t *GType) MethodByName(name string) (Method, bool)
- func (t *GType) Name() string
- func (t *GType) NumField() int
- func (t *GType) NumIn() int
- func (t *GType) NumMethod() int
- func (t *GType) NumOut() int
- func (t *GType) Out(i int) Type
- func (t *GType) PkgPath() string
- func (t *GType) String() string
- func (t *GType) Unwrap() any
- type Method
- type RMethod
- type RStructField
- type RType
- func (t *RType) AssignableTo(u Type) bool
- func (t *RType) Comparable() bool
- func (t *RType) ConvertibleTo(u Type) bool
- func (t *RType) Elem() Type
- func (t *RType) Field(i int) StructField
- func (t *RType) FieldByName(name string) (StructField, bool)
- func (t *RType) FieldByNameFunc(match func(string) bool) (StructField, bool)
- func (t *RType) Implements(u Type) bool
- func (t *RType) In(i int) Type
- func (t *RType) IsVariadic() bool
- func (t *RType) Key() Type
- func (t *RType) Kind() reflect.Kind
- func (t *RType) Len() int
- func (t *RType) Method(i int) Method
- func (t *RType) MethodByName(name string) (Method, bool)
- func (t *RType) Name() string
- func (t *RType) NumField() int
- func (t *RType) NumIn() int
- func (t *RType) NumMethod() int
- func (t *RType) NumOut() int
- func (t *RType) Out(i int) Type
- func (t *RType) PkgPath() string
- func (t *RType) String() string
- func (t *RType) Unwrap() any
- type StructField
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GStructField ¶ added in v0.0.24
type GStructField struct {
// contains filtered or unexported fields
}
func (*GStructField) Anonymous ¶ added in v0.0.24
func (f *GStructField) Anonymous() bool
func (*GStructField) Name ¶ added in v0.0.24
func (f *GStructField) Name() string
func (*GStructField) PkgPath ¶ added in v0.0.24
func (f *GStructField) PkgPath() string
func (*GStructField) Tag ¶ added in v0.0.24
func (f *GStructField) Tag() reflect.StructTag
func (*GStructField) Type ¶ added in v0.0.24
func (f *GStructField) Type() Type
type GType ¶ added in v0.0.24
type GType struct {
// contains filtered or unexported fields
}
func (*GType) AssignableTo ¶ added in v0.0.24
func (*GType) Comparable ¶ added in v0.0.24
func (*GType) ConvertibleTo ¶ added in v0.0.24
func (*GType) Field ¶ added in v0.0.24
func (t *GType) Field(i int) StructField
func (*GType) FieldByName ¶ added in v0.0.24
func (t *GType) FieldByName(name string) (StructField, bool)
func (*GType) FieldByNameFunc ¶ added in v0.0.24
func (t *GType) FieldByNameFunc(match func(string) bool) (StructField, bool)
func (*GType) Implements ¶ added in v0.0.24
func (*GType) IsVariadic ¶ added in v0.0.24
func (*GType) MethodByName ¶ added in v0.0.24
type RStructField ¶ added in v0.0.24
type RStructField struct {
// contains filtered or unexported fields
}
func (*RStructField) Anonymous ¶ added in v0.0.24
func (f *RStructField) Anonymous() bool
func (*RStructField) Name ¶ added in v0.0.24
func (f *RStructField) Name() string
func (*RStructField) PkgPath ¶ added in v0.0.24
func (f *RStructField) PkgPath() string
func (*RStructField) Tag ¶ added in v0.0.24
func (f *RStructField) Tag() reflect.StructTag
func (*RStructField) Type ¶ added in v0.0.24
func (f *RStructField) Type() Type
type RType ¶ added in v0.0.24
type RType struct {
// contains filtered or unexported fields
}
RType wraps reflect.Type and implements typex.Type
func (*RType) AssignableTo ¶ added in v0.0.24
func (*RType) Comparable ¶ added in v0.0.24
func (*RType) ConvertibleTo ¶ added in v0.0.24
func (*RType) Field ¶ added in v0.0.24
func (t *RType) Field(i int) StructField
func (*RType) FieldByName ¶ added in v0.0.24
func (t *RType) FieldByName(name string) (StructField, bool)
func (*RType) FieldByNameFunc ¶ added in v0.0.24
func (t *RType) FieldByNameFunc(match func(string) bool) (StructField, bool)
func (*RType) Implements ¶ added in v0.0.24
func (*RType) IsVariadic ¶ added in v0.0.24
func (*RType) MethodByName ¶ added in v0.0.24
type StructField ¶
type Type ¶
type Type interface { // Unwrap to types.Type or reflect.Type Unwrap() any PkgPath() string Name() string String() string Kind() reflect.Kind Implements(Type) bool AssignableTo(Type) bool ConvertibleTo(Type) bool Comparable() bool Key() Type Elem() Type Len() int NumField() int Field(int) StructField FieldByName(string) (StructField, bool) FieldByNameFunc(func(string) bool) (StructField, bool) NumMethod() int Method(int) Method MethodByName(string) (Method, bool) IsVariadic() bool NumIn() int In(int) Type NumOut() int Out(int) Type }
Click to show internal directories.
Click to hide internal directories.