Source File
temp_env.go
Belonging Package
src.elv.sh/pkg/testutil
package testutilimport// WithTempEnv sets an environment variable to a temporary value, and returns a// function for restoring the old value.func (, string) func() {:= os.Getenv()os.Setenv(, )return func() { os.Setenv(, ) }}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)