race

package
v3.45.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package race can be used to tell if the race detector is enabled.

It is intended for internal use by buildkite-agent only.

Index

Constants

View Source
const Enabled = false

We can use this constant to determine whether or not the Go Race Detector is enabled. If the race detector is enabled, the `race` build tag is passed, so this file won't be compiled, where the other one (./enabled.go) will be. That is, if the race detector is enabled, the constant below will be false. Otherwise, it'll be true. It's kinda weird, but it's also how go itself does it: https://github.com/golang/go/blob/master/src/internal/race/race.go#L15

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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