race

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package race exposes whether the binary was built with the race detector enabled (-race). Callers use it to skip CPU-bound work under race instrumentation where race coverage adds nothing — e.g. one-shot decode sweeps that are slow enough to blow per-test timeouts when the race runtime amplifies allocator and recursive-call costs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether the binary was built with -race.

Types

This section is empty.

Jump to

Keyboard shortcuts

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