Documentation
¶
Overview ¶
Package hack 对 go 系统包的 hack, 包含一些系统结构体的 copy,需要和每个 go 版本保持同步
Package hack 对 go 系统包的 hack, 包含一些系统结构体的 copy,需要和不同的 go 版本保持同步 ¶
Package hack 对 go 系统包的 hack, 包含一些系统结构体的 copy,需要和不同的 go 版本保持同步
Index ¶
Constants ¶
View Source
const InterceptCallerSkip = 5
InterceptCallerSkip 拦截器 callerskip
View Source
const (
// MaxMethod 支持类型的最大方法数量
MaxMethod = 999
)
Variables ¶
SignalsToIgnore ignore the quit signal
Functions ¶
This section is empty.
Types ¶
type Eface ¶
type Eface struct { // Data 为 interface{}类型变量指向的 Iface 类型变量的地址 Data unsafe.Pointer // contains filtered or unexported fields }
Eface 接口结构
type Func ¶
type Func struct {
CodePtr uintptr
}
Func convenience struct for modifying the underlying code pointer of a function value. The actual struct has other values, but always starts with a code pointer. keep async with runtime.Func
type Itab ¶
type Itab struct { // nolint Inter *uintptr // nolint Type *uintptr // Fun 为方法表映射、排序同接口方法定义的顺序 Fun [MaxMethod]uintptr // variable sized. fun[0]==0 means Type does not implement Inter. // contains filtered or unexported fields }
Itab keeps sync with runtime.itab TODO 不同 go 版本兼容 注意: 最多兼容99个方法数量以内的接口
Click to show internal directories.
Click to hide internal directories.