...

Package runtime

import "github.com/goccy/go-json/internal/runtime"
Overview
Index

Overview ▾

Index ▾

func IfaceIndir(*Type) bool
func IsIgnoredStructField(field reflect.StructField) bool
func RType2Type(t *Type) reflect.Type
type SliceHeader
type StructTag
    func StructTagFromField(field reflect.StructField) *StructTag
type StructTags
    func (t StructTags) ExistsKey(key string) bool
type Type
    func PtrTo(*Type) *Type
    func Type2RType(t reflect.Type) *Type
    func (t *Type) Align() int
    func (t *Type) AssignableTo(u reflect.Type) bool
    func (t *Type) Bits() int
    func (t *Type) ChanDir() reflect.ChanDir
    func (t *Type) Comparable() bool
    func (t *Type) ConvertibleTo(u reflect.Type) bool
    func (t *Type) Elem() *Type
    func (t *Type) Field(i int) reflect.StructField
    func (t *Type) FieldAlign() int
    func (t *Type) FieldByIndex(index []int) reflect.StructField
    func (t *Type) FieldByName(name string) (reflect.StructField, bool)
    func (t *Type) FieldByNameFunc(match func(string) bool) (reflect.StructField, bool)
    func (t *Type) Implements(u reflect.Type) bool
    func (t *Type) In(i int) reflect.Type
    func (t *Type) IsVariadic() bool
    func (t *Type) Key() *Type
    func (t *Type) Kind() reflect.Kind
    func (t *Type) Len() int
    func (t *Type) Method(a0 int) reflect.Method
    func (t *Type) MethodByName(a0 string) (reflect.Method, bool)
    func (t *Type) Name() string
    func (t *Type) NumField() int
    func (t *Type) NumIn() int
    func (t *Type) NumMethod() int
    func (t *Type) NumOut() int
    func (t *Type) Out(i int) reflect.Type
    func (t *Type) PkgPath() string
    func (t *Type) Size() uintptr
    func (t *Type) String() string
type TypeAddr
    func AnalyzeTypeAddr() *TypeAddr

Package files

rtype.go struct_field.go type.go

func IfaceIndir

func IfaceIndir(*Type) bool

func IsIgnoredStructField

func IsIgnoredStructField(field reflect.StructField) bool

func RType2Type

func RType2Type(t *Type) reflect.Type

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 representing reflect.rtype for noescape trick

type Type struct{}

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