runtime

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalNoError

func MarshalNoError(v interface{}) (result []byte)

func XgoGetCurG

func XgoGetCurG() unsafe.Pointer

func XgoGetFullPCName

func XgoGetFullPCName(pc uintptr) string

func XgoInitFinished

func XgoInitFinished() bool

func XgoOnCreateG

func XgoOnCreateG(callback func(g unsafe.Pointer, childG unsafe.Pointer))

func XgoOnExitG

func XgoOnExitG(callback func())

func XgoOnInitFinished

func XgoOnInitFinished(callback func())

func XgoPeekPanic

func XgoPeekPanic() (interface{}, uintptr)

func XgoRealTimeNow

func XgoRealTimeNow() time.Time

XgoRealTimeNow returns the true time.Now() this will be rewritten to time.XgoRealNow() if time.Now was rewritten

func XgoSetTrap

func XgoSetTrap(trap func(info unsafe.Pointer, recvPtr interface{}, args []interface{}, results []interface{}) (func(), bool))

func XgoSetVarPtrTrap

func XgoSetVarPtrTrap(trap func(info unsafe.Pointer, varAddr interface{}, res interface{}))

func XgoSetVarTrap

func XgoSetVarTrap(trap func(info unsafe.Pointer, varAddr interface{}, res interface{}))

func XgoSetupRegisterHandler added in v1.1.1

func XgoSetupRegisterHandler(register func(fn unsafe.Pointer))

Types

type G

type G struct {
	// contains filtered or unexported fields
}

keep in sync with runtime.__xgo_g

func AsG

func AsG(g unsafe.Pointer) *G

func GetG

func GetG() *G

func (*G) DecTrappingDepth added in v1.1.1

func (g *G) DecTrappingDepth()

func (*G) Delete

func (g *G) Delete(key interface{})

func (*G) Get

func (g *G) Get(key interface{}) interface{}

func (*G) GetOK

func (g *G) GetOK(key interface{}) (interface{}, bool)

func (*G) IncTrappingDepth added in v1.1.1

func (g *G) IncTrappingDepth() int

func (*G) Set

func (g *G) Set(key, value interface{})

type XgoFuncInfo added in v1.1.1

type XgoFuncInfo struct{}

Jump to

Keyboard shortcuts

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