ctxt

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EnableTrapUntypedConst = true
View Source
const GenericImplIsClosure = false
View Source
const XgoLinkTrapVarForGenerated = "__xgo_link_trap_var_for_generated"
View Source
const XgoModule = "github.com/xhd2015/xgo"
View Source
const XgoRuntimeCorePkg = XgoModule + "/runtime/core"
View Source
const XgoRuntimePkg = XgoModule + "/runtime"
View Source
const XgoRuntimeTracePkg = XgoModule + "/runtime/trace"

Variables

View Source
var XGO_COMPILER_ENABLE = os.Getenv("XGO_COMPILER_ENABLE") == "true"
View Source
var XGO_COMPILER_ENABLE_SYNTAX = os.Getenv("XGO_COMPILER_ENABLE_SYNTAX") != "false"

default true

View Source
var XGO_COMPILER_LOG_COST = os.Getenv("XGO_COMPILER_LOG_COST") == "true"
View Source
var XGO_COMPILER_OPTIONS_FILE = os.Getenv("XGO_COMPILER_OPTIONS_FILE")
View Source
var XGO_COMPILER_SYNTAX_SKIP_ALL_TRAP = os.Getenv("XGO_COMPILER_SYNTAX_SKIP_ALL_TRAP") == "true"
View Source
var XGO_COMPILER_SYNTAX_SKIP_FILL_FUNC_NAMES = os.Getenv("XGO_COMPILER_SYNTAX_SKIP_FILL_FUNC_NAMES") == "true"
View Source
var XGO_COMPILER_SYNTAX_SKIP_GEN_CODE = os.Getenv("XGO_COMPILER_SYNTAX_SKIP_GEN_CODE") == "true"
View Source
var XGO_COMPILER_SYNTAX_SKIP_INJECT_XGO_FLAGS = os.Getenv("XGO_COMPILER_SYNTAX_SKIP_INJECT_XGO_FLAGS") == "true"
View Source
var XGO_COMPILER_SYNTAX_SKIP_VAR_TRAP = os.Getenv("XGO_COMPILER_SYNTAX_SKIP_VAR_TRAP") == "true"
View Source
var XgoCompilePkgDataDir = os.Getenv("XGO_COMPILE_PKG_DATA_DIR")
View Source
var XgoMainModule = os.Getenv("XGO_MAIN_MODULE")
View Source
var XgoStdTrapDefaultAllow = os.Getenv("XGO_STD_LIB_TRAP_DEFAULT_ALLOW") == "true"

enabled via: --trap-stdlib

Functions

func AllowPkgFuncTrap

func AllowPkgFuncTrap(pkgPath string, isStd bool, identityName string, funcName string) bool

func GetAction added in v1.0.39

func GetAction(fn *info.DeclInfo) string

func GetPkgPath

func GetPkgPath() string

func InitAfterLoad added in v1.0.39

func InitAfterLoad()

func IsMainModule added in v1.0.39

func IsMainModule() bool

func IsPkgMainModule added in v1.0.39

func IsPkgMainModule(pkg string) bool

func IsPkgXgoSkipTrap

func IsPkgXgoSkipTrap(pkg string) bool

skip all packages for xgo,except test

func IsSameModule added in v1.0.39

func IsSameModule(pkgPath string, modulePath string) bool

func LogSpan added in v1.0.39

func LogSpan(msg string) func()

func MatchAnyPattern

func MatchAnyPattern(pkgPath string, pkgName string, funcName string, patterns []string) bool

func MatchPattern

func MatchPattern(pkgPath string, pkgName string, funcName string, pattern string) bool

func SkipPackageTrap

func SkipPackageTrap() bool

Types

type Options added in v1.0.39

type Options struct {
	FilterRules []match.Rule `json:"filter_rules"`
}

Jump to

Keyboard shortcuts

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