build

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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

func IsDev() bool

func IsProd

func IsProd() bool

func IsTest

func IsTest() bool

func Mode

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