Commit 55ea153b authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: reference LookupEnv from the Getenv docs

Fixes #16782

Change-Id: If54917bf5ca1588d8a6d443c3aa6e1d4ada6b620
Reviewed-on: https://go-review.googlesource.com/27322Reviewed-by: 's avataranatoly techtonik <techtonik@gmail.com>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 79444237
......@@ -76,6 +76,7 @@ func getShellName(s string) (string, int) {
// Getenv retrieves the value of the environment variable named by the key.
// It returns the value, which will be empty if the variable is not present.
// To distinguish between an empty value and an unset value, use LookupEnv.
func Getenv(key string) string {
v, _ := syscall.Getenv(key)
return v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment