debug

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package debug is a dummy package that is not yet implemented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStack added in v0.27.0

func PrintStack()

PrintStack prints to standard error the stack trace returned by runtime.Stack.

Not implemented.

func SetGCPercent added in v0.28.0

func SetGCPercent(n int) int

Not implemented.

func SetMaxStack

func SetMaxStack(n int) int

SetMaxStack sets the maximum amount of memory that can be used by a single goroutine stack.

Not implemented.

func Stack

func Stack() []byte

Stack returns a formatted stack trace of the goroutine that calls it.

Not implemented.

Types

type BuildInfo added in v0.23.0

type BuildInfo struct {
	Path     string    // The main package path
	Main     Module    // The module containing the main package
	Deps     []*Module // Module dependencies
	Settings []BuildSetting
}

BuildInfo represents the build information read from the running binary.

func ReadBuildInfo added in v0.23.0

func ReadBuildInfo() (info *BuildInfo, ok bool)

ReadBuildInfo returns the build information embedded in the running binary. The information is available only in binaries built with module support.

Not implemented.

type BuildSetting added in v0.28.0

type BuildSetting struct {
	// Key and Value describe the build setting.
	// Key must not contain an equals sign, space, tab, or newline.
	// Value must not contain newlines ('\n').
	Key, Value string
}

type Module added in v0.23.0

type Module struct {
	Path    string  // module path
	Version string  // module version
	Sum     string  // checksum
	Replace *Module // replaced by this module
}

Module represents a module.

Jump to

Keyboard shortcuts

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