Files
moxa/stdlib/go1_16_runtime_trace.go
Marc Vertes d16bd4bcdb interp: fix package name extraction from import path
The heuristic to generate a package name identifier was incorrect. Now for binary packages, the package identifier is obtained by a symbol, generated by extract, which contains the string argument of package statement in source file. This should ensure an always correct default package identifier. 

Fixes #1095.
2021-05-10 11:20:07 +02:00

29 lines
780 B
Go

// Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT.
// +build go1.16
package stdlib
import (
"reflect"
"runtime/trace"
)
func init() {
Symbols["runtime/trace/trace"] = map[string]reflect.Value{
// function, constant and variable definitions
"IsEnabled": reflect.ValueOf(trace.IsEnabled),
"Log": reflect.ValueOf(trace.Log),
"Logf": reflect.ValueOf(trace.Logf),
"NewTask": reflect.ValueOf(trace.NewTask),
"Start": reflect.ValueOf(trace.Start),
"StartRegion": reflect.ValueOf(trace.StartRegion),
"Stop": reflect.ValueOf(trace.Stop),
"WithRegion": reflect.ValueOf(trace.WithRegion),
// type definitions
"Region": reflect.ValueOf((*trace.Region)(nil)),
"Task": reflect.ValueOf((*trace.Task)(nil)),
}
}