Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Build ¶
func MustNewBuild ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Example ¶
var e Env
e.Set("KEY1", "Just a value")
fmt.Println(e.CmdEnv())
e.Set("KEY2", "Yet another value")
fmt.Println(e.CmdEnv())
fmt.Println(e.Get("KEY1"))
e.Unset("KEY1")
fmt.Println(e.CmdEnv())
fmt.Println(e.Get("KEY1"))
Output: [KEY1=Just a value] [KEY1=Just a value KEY2=Yet another value] Just a value true [KEY2=Yet another value] false
Click to show internal directories.
Click to hide internal directories.