Files
moxa/stdlib/go1_19_runtime_debug.go
Marc Vertes 0e3ea5732a update to go1.20
* update to go1.20

* lint

* fix: ci

---------

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2023-02-03 14:32:05 +01:00

37 lines
1.3 KiB
Go

// Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT.
//go:build go1.19 && !go1.20
// +build go1.19,!go1.20
package stdlib
import (
"reflect"
"runtime/debug"
)
func init() {
Symbols["runtime/debug/debug"] = map[string]reflect.Value{
// function, constant and variable definitions
"FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory),
"ParseBuildInfo": reflect.ValueOf(debug.ParseBuildInfo),
"PrintStack": reflect.ValueOf(debug.PrintStack),
"ReadBuildInfo": reflect.ValueOf(debug.ReadBuildInfo),
"ReadGCStats": reflect.ValueOf(debug.ReadGCStats),
"SetGCPercent": reflect.ValueOf(debug.SetGCPercent),
"SetMaxStack": reflect.ValueOf(debug.SetMaxStack),
"SetMaxThreads": reflect.ValueOf(debug.SetMaxThreads),
"SetMemoryLimit": reflect.ValueOf(debug.SetMemoryLimit),
"SetPanicOnFault": reflect.ValueOf(debug.SetPanicOnFault),
"SetTraceback": reflect.ValueOf(debug.SetTraceback),
"Stack": reflect.ValueOf(debug.Stack),
"WriteHeapDump": reflect.ValueOf(debug.WriteHeapDump),
// type definitions
"BuildInfo": reflect.ValueOf((*debug.BuildInfo)(nil)),
"BuildSetting": reflect.ValueOf((*debug.BuildSetting)(nil)),
"GCStats": reflect.ValueOf((*debug.GCStats)(nil)),
"Module": reflect.ValueOf((*debug.Module)(nil)),
}
}