env

package
v0.0.0-...-17df793 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

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

Set sets the environment variable for testing

func UseExperimental

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