debug

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 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 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
}

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 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