Documentation ¶
Index ¶
Constants ¶
View Source
const GOARCH = `amd64`
View Source
const GOOS = `linux`
View Source
const Is386 = 0
View Source
const IsAix = 0
View Source
const IsAmd64 = 1
View Source
const IsAmd64p32 = 0
View Source
const IsAndroid = 0
View Source
const IsArm = 0
View Source
const IsArm64 = 0
View Source
const IsArm64be = 0
View Source
const IsArmbe = 0
View Source
const IsDarwin = 0
View Source
const IsDragonfly = 0
View Source
const IsFreebsd = 0
View Source
const IsHurd = 0
View Source
const IsIllumos = 0
View Source
const IsIos = 0
View Source
const IsJs = 0
View Source
const IsLinux = 1
View Source
const IsLoong64 = 0
View Source
const IsMips = 0
View Source
const IsMips64 = 0
View Source
const IsMips64le = 0
View Source
const IsMips64p32 = 0
View Source
const IsMips64p32le = 0
View Source
const IsMipsle = 0
View Source
const IsNacl = 0
View Source
const IsNetbsd = 0
View Source
const IsOpenbsd = 0
View Source
const IsPlan9 = 0
View Source
const IsPpc = 0
View Source
const IsPpc64 = 0
View Source
const IsPpc64le = 0
View Source
const IsRiscv = 0
View Source
const IsRiscv64 = 0
View Source
const IsS390 = 0
View Source
const IsS390x = 0
View Source
const IsSolaris = 0
View Source
const IsSparc = 0
View Source
const IsSparc64 = 0
View Source
const IsWasip1 = 0
View Source
const IsWasm = 0
View Source
const IsWindows = 0
View Source
const IsZos = 0
Variables ¶
This section is empty.
Functions ¶
func GOROOT ¶
func GOROOT() string
GOROOT returns the root of the Go tree. It uses the GOROOT environment variable, if set at process start, or else the root used during the Go build.
func SetFinalizer ¶ added in v0.9.1
Types ¶
type Frame ¶ added in v0.9.1
type Frame struct { // PC is the program counter for the location in this frame. // For a frame that calls another frame, this will be the // program counter of a call instruction. Because of inlining, // multiple frames may have the same PC value, but different // symbolic information. PC uintptr // Func is the Func value of this call frame. This may be nil // for non-Go code or fully inlined functions. Func *Func // Function is the package path-qualified function name of // this call frame. If non-empty, this string uniquely // identifies a single function in the program. // This may be the empty string if not known. // If Func is not nil then Function == Func.Name(). Function string // File and Line are the file name and line number of the // location in this frame. For non-leaf frames, this will be // the location of a call. These may be the empty string and // zero, respectively, if not known. File string Line int // Entry point program counter for the function; may be zero // if not known. If Func is not nil then Entry == // Func.Entry(). Entry uintptr // contains filtered or unexported fields }
Frame is the information returned by Frames for each call frame.
type Frames ¶ added in v0.9.1
type Frames struct {
// contains filtered or unexported fields
}
Frames may be used to get function/file/line information for a slice of PC values returned by Callers.
func CallersFrames ¶ added in v0.9.1
CallersFrames takes a slice of PC values returned by Callers and prepares to return function/file/line information. Do not change the slice until you are done with the Frames.
Click to show internal directories.
Click to hide internal directories.