Documentation ¶
Index ¶
- type RType
- func (t *RType) Align() int
- func (t *RType) AssignableTo(u reflect.Type) bool
- func (t *RType) Bits() int
- func (t *RType) ChanDir() reflect.ChanDir
- func (t *RType) Comparable() bool
- func (t *RType) ConvertibleTo(u reflect.Type) bool
- func (t *RType) Elem() *RType
- func (t *RType) Field(i int) reflect.StructField
- func (t *RType) FieldAlign() int
- func (t *RType) FieldByIndex(index []int) reflect.StructField
- func (t *RType) FieldByName(name string) (reflect.StructField, bool)
- func (t *RType) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool)
- func (t *RType) IfaceIndir() bool
- func (t *RType) Implements(u reflect.Type) bool
- func (t *RType) In(i int) reflect.Type
- func (t *RType) IsVariadic() bool
- func (t *RType) Key() *RType
- func (t *RType) Kind() reflect.Kind
- func (t *RType) Len() int
- func (t *RType) Method(a0 int) reflect.Method
- func (t *RType) MethodByName(a0 string) (reflect.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) reflect.Type
- func (t *RType) PackInterface(word unsafe.Pointer) interface{}
- func (t *RType) PkgPath() string
- func (t *RType) Pointer() unsafe.Pointer
- func (t *RType) Size() uintptr
- func (t *RType) String() string
- func (t *RType) ToType() reflect.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RType ¶
type RType struct{}
func MapOf ¶
MapOf returns the map type with the given key and element types. For example, if k represents int and e represents string, MapOf(k, e) represents map[int]string.
If the key type is not a valid map key type (that is, if it does not implement Go's == operator), MapOf panics.
func PtrTo ¶
PtrTo returns the pointer type with element t. For example, if t represents type Foo, PtrTo(t) represents *Foo.
func RTypeOf ¶
func RTypeOf(v interface{}) *RType
RTypeOf returns the underlying rtype pointer of the given interface{} value.
func SliceOf ¶
SliceOf returns the slice type with element type t. For example, if t represents int, SliceOf(t) represents []int.
func (*RType) Comparable ¶
func (*RType) FieldAlign ¶
func (*RType) FieldByIndex ¶
func (t *RType) FieldByIndex(index []int) reflect.StructField
func (*RType) FieldByName ¶
func (t *RType) FieldByName(name string) (reflect.StructField, bool)
func (*RType) FieldByNameFunc ¶
func (*RType) IfaceIndir ¶
func (*RType) IsVariadic ¶
func (*RType) PackInterface ¶
Click to show internal directories.
Click to hide internal directories.