runtime

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfaceIndir

func IfaceIndir(*Type) bool

func IsIgnoredStructField

func IsIgnoredStructField(field reflect.StructField) bool

func RType2Type

func RType2Type(t *Type) reflect.Type

Types

type SliceHeader

type SliceHeader struct {
	Data unsafe.Pointer
	Len  int
	Cap  int
}

type StructTag

type StructTag struct {
	Key         string
	IsTaggedKey bool
	IsOmitEmpty bool
	IsString    bool
	Field       reflect.StructField
}

func StructTagFromField

func StructTagFromField(field reflect.StructField) *StructTag

type StructTags

type StructTags []*StructTag

func (StructTags) ExistsKey

func (t StructTags) ExistsKey(key string) bool

type Type

type Type struct{}

Type representing reflect.rtype for noescape trick

func PtrTo

func PtrTo(*Type) *Type

func Type2RType

func Type2RType(t reflect.Type) *Type

func (*Type) Align

func (t *Type) Align() int

func (*Type) AssignableTo

func (t *Type) AssignableTo(u reflect.Type) bool

func (*Type) Bits

func (t *Type) Bits() int

func (*Type) ChanDir

func (t *Type) ChanDir() reflect.ChanDir

func (*Type) Comparable

func (t *Type) Comparable() bool

func (*Type) ConvertibleTo

func (t *Type) ConvertibleTo(u reflect.Type) bool

func (*Type) Elem

func (t *Type) Elem() *Type

func (*Type) Field

func (t *Type) Field(i int) reflect.StructField

func (*Type) FieldAlign

func (t *Type) FieldAlign() int

func (*Type) FieldByIndex

func (t *Type) FieldByIndex(index []int) reflect.StructField

func (*Type) FieldByName

func (t *Type) FieldByName(name string) (reflect.StructField, bool)

func (*Type) FieldByNameFunc

func (t *Type) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool)

func (*Type) Implements

func (t *Type) Implements(u reflect.Type) bool

func (*Type) In

func (t *Type) In(i int) reflect.Type

func (*Type) IsVariadic

func (t *Type) IsVariadic() bool

func (*Type) Key

func (t *Type) Key() *Type

func (*Type) Kind

func (t *Type) Kind() reflect.Kind

func (*Type) Len

func (t *Type) Len() int

func (*Type) Method

func (t *Type) Method(a0 int) reflect.Method

func (*Type) MethodByName

func (t *Type) MethodByName(a0 string) (reflect.Method, bool)

func (*Type) Name

func (t *Type) Name() string

func (*Type) NumField

func (t *Type) NumField() int

func (*Type) NumIn

func (t *Type) NumIn() int

func (*Type) NumMethod

func (t *Type) NumMethod() int

func (*Type) NumOut

func (t *Type) NumOut() int

func (*Type) Out

func (t *Type) Out(i int) reflect.Type

func (*Type) PkgPath

func (t *Type) PkgPath() string

func (*Type) Size

func (t *Type) Size() uintptr

func (*Type) String

func (t *Type) String() string

type TypeAddr

type TypeAddr struct {
	BaseTypeAddr uintptr
	MaxTypeAddr  uintptr
	AddrRange    uintptr
	AddrShift    uintptr
}

func AnalyzeTypeAddr

func AnalyzeTypeAddr() *TypeAddr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL