build

package
v2.12.1-mercury06062024 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package build utilizes build tags and package testing API to determine the environment that this binary was built to target.

  • Prod is the default
  • Test is automatically set in test binaries, e.g. when using `go test`
  • Dev can be set with the 'dev' build tag, for standard builds or test binaries

Index

Constants

View Source
const (
	Prod = "prod"
	Dev  = "dev"
	Test = "test"
)

Variables

This section is empty.

Functions

func IsDev added in v2.2.0

func IsDev() bool

func IsProd added in v2.2.0

func IsProd() bool

func IsTest added in v2.2.0

func IsTest() bool

func Mode added in v2.7.0

func Mode() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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