Documentation
¶
Overview ¶
Package osx provides functionx which are extensions of the functionality provided in os.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustSetenv ¶
func MustSetenv(key, value string) func()
MustSetenv sets the environment variable named key to the passed-in value. Returns a function that, when run, restores the environment to its previous state.
Example ¶
package main
import (
"github.com/m-lab/go/osx"
)
func main() {
revert := osx.MustSetenv("PATH", "/temp/bin")
defer revert()
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.