debugbuild

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package debugbuild provides information about whatever this is a debug build or not.

See build/version package documentation for more details.

It is a separate package to avoid dependency cycles.

Index

Constants

View Source
const Enabled = false

Enabled is false if that's not a debug build.

See build/version package documentation for more details.

It is a constant to allow the compiler to optimize away the code.

Variables

This section is empty.

Functions

func Stack

func Stack() []byte

Stack returns a formatted stack trace of the goroutine that calls it for debug builds. For non-debug builds, it returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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