env

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 13 Imported by: 10

Documentation

Index

Constants

View Source
const (
	GoctlOS                = "GOCTL_OS"
	GoctlArch              = "GOCTL_ARCH"
	GoctlHome              = "GOCTL_HOME"
	GoctlDebug             = "GOCTL_DEBUG"
	GoctlCache             = "GOCTL_CACHE"
	GoctlVersion           = "GOCTL_VERSION"
	GoctlExperimental      = "GOCTL_EXPERIMENTAL"
	ProtocVersion          = "PROTOC_VERSION"
	ProtocGenGoVersion     = "PROTOC_GEN_GO_VERSION"
	ProtocGenGoGRPCVersion = "PROTO_GEN_GO_GRPC_VERSION"

	ExperimentalOn  = "on"
	ExperimentalOff = "off"
)

Variables

This section is empty.

Functions

func Get

func Get(key string) string

func GetOr

func GetOr(key, def string) string

func Print

func Print(args ...string) string

func Set added in v1.6.0

func Set(t *testing.T, key, value string)

Set sets the environment variable for testing

func UseExperimental added in v1.5.1

func UseExperimental() bool

func WriteEnv

func WriteEnv(kv []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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