Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v0.7.169 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEnv

type TestEnv struct {
	HomeDir      string
	GithubURL    string
	AnthropicURL string
	CircleCIURL  string
	GithubToken  string
	AnthropicKey string
	CircleToken  string
	Extra        map[string]string
}

TestEnv builds an isolated environment for CLI invocations.

func NewTestEnv

func NewTestEnv(t *testing.T) *TestEnv

NewTestEnv creates a TestEnv with a fresh temp HOME directory.

func (*TestEnv) Environ

func (e *TestEnv) Environ() []string

Environ returns the environment as a []string for exec.Cmd.Env.

Jump to

Keyboard shortcuts

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