build

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 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