ldflag

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ldflag contains flags set at link time via LDFLAGS="...". Runtime packages can rely on these variables to access information about the build.

e.g. go run -ldflags="-X 'github.com/go-duo/ldflag/ldflag.hot=true'" main.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env() string

func Hot

func Hot() bool

func IsDevelopment

func IsDevelopment() bool

func IsProduction

func IsProduction() bool

func IsTest

func IsTest() bool

func Minify

func Minify() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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