go: github.com/golang/go/src/cmd/go/internal/envcmd Index | Files

package envcmd

import "github.com/golang/go/src/cmd/go/internal/envcmd"

Package envcmd implements the “go env” command.

Index

Package Files

env.go

Variables

var CmdEnv = &base.Command{
    UsageLine: "go env [-json] [-u] [-w] [var ...]",
    Short:     "print Go environment information",
    Long:      "" /* 694 byte string literal not displayed */,
}

func ExtraEnvVars Uses

func ExtraEnvVars() []cfg.EnvVar

ExtraEnvVars returns environment variables that should not leak into child processes.

func ExtraEnvVarsCostly Uses

func ExtraEnvVarsCostly() []cfg.EnvVar

ExtraEnvVarsCostly returns environment variables that should not leak into child processes but are costly to evaluate.

func MkEnv Uses

func MkEnv() []cfg.EnvVar

Package envcmd imports 16 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.