Documentation
¶
Index ¶
- Constants
- Variables
- func AllowPkgFuncTrap(pkgPath string, isStd bool, funcName string) bool
- func GetAction(fn *info.DeclInfo) string
- func GetPkgPath() string
- func InitAfterLoad()
- func IsMainModule() bool
- func IsPkgMainModule(pkg string) bool
- func IsPkgXgoSkipTrap(pkg string) bool
- func IsSameModule(pkgPath string, modulePath string) bool
- func LogSpan(msg string) func()
- func MatchAnyPattern(pkgPath string, pkgName string, funcName string, patterns []string) bool
- func MatchPattern(pkgPath string, pkgName string, funcName string, pattern string) bool
- func SkipPackageTrap() bool
- type Options
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 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 IsPkgXgoSkipTrap ¶
skip all packages for xgo,except test
func IsSameModule ¶ added in v1.0.39
func MatchAnyPattern ¶
func MatchPattern ¶
func SkipPackageTrap ¶
func SkipPackageTrap() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.