config

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG = false
View Source
const IS_DEV = false
View Source
const MAX_EXTRA_FUNCS_PER_FILE = 16
View Source
const MAX_EXTRA_FUNCS_PER_PKG = 6 * MAX_EXTRA_FUNCS_PER_FILE

Variables

View Source
var PREDEFINED_STD_PKGS = []string{
	"time",
	"os",
	"os/exec",
	"net",
	"net/http",
	"io",
	"io/ioutil",
}

Functions

func CheckInstrument

func CheckInstrument(pkgPath string) (isXgo bool, allow bool)

func EnabledLogDebug

func EnabledLogDebug() bool

func LogDebug

func LogDebug(format string, args ...interface{})

func SetupDebugLog

func SetupDebugLog(logDebugOption *string) (func(), error)

Types

type InstrumentMode added in v1.1.4

type InstrumentMode int
const (
	InstrumentMode_Exported InstrumentMode = iota
	InstrumentMode_All
	InstrumentMode_None
)

func CheckInstrumentMode added in v1.1.4

func CheckInstrumentMode(stdlib bool, main bool, initial bool, trapAll bool) InstrumentMode

type PkgConfig

type PkgConfig struct {
	WhitelistFunc       map[string]bool
	WhitelistFuncPrefix []string
}

func GetPkgConfig

func GetPkgConfig(pkgPath string) *PkgConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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