envcmd

package
v0.0.0-...-8baa2bd Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package envcmd implements the “go env” command.

Index

Constants

This section is empty.

Variables

View Source
var CmdEnv = &base.Command{
	UsageLine: "env [-json] [var ...]",
	Short:     "print Go environment information",
	Long: `
Env prints Go environment information.

By default env prints information as a shell script
(on Windows, a batch file). If one or more variable
names is given as arguments, env prints the value of
each named variable on its own line.

The -json flag prints the environment in JSON format
instead of as a shell script.
	`,
}

Functions

func ExtraEnvVars

func ExtraEnvVars() []cfg.EnvVar

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

func MkEnv

func MkEnv() []cfg.EnvVar

Types

This section is empty.

Jump to

Keyboard shortcuts

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