Rebuild for environment-variables
This commit is contained in:
parent
410beb8393
commit
43825687bb
@ -23,7 +23,7 @@ func main() {
|
||||
|
||||
// Use `os.Environ` to list all key/value pairs in the
|
||||
// environment. This returns a slice of strings in the
|
||||
// form `KEY=value`. You can `strings.Split` them to
|
||||
// form `KEY=value`. You can `strings.SplitN` them to
|
||||
// get the key and value. Here we print all the keys.
|
||||
fmt.Println()
|
||||
for _, e := range os.Environ() {
|
||||
|
@ -1,2 +1,2 @@
|
||||
b651bc17e4d2880cba0885c52f476ab2a86e39ae
|
||||
MTbfmZYa4vP
|
||||
69d6a768ac84c873ae03b2169ac5cc4cfbc601a6
|
||||
gSTxKWLOHRb
|
||||
|
4
public/environment-variables
generated
4
public/environment-variables
generated
@ -44,7 +44,7 @@ Let’s look at how to set, get, and list environment variables.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
<a href="http://play.golang.org/p/MTbfmZYa4vP"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||
<a href="http://play.golang.org/p/gSTxKWLOHRb"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||
<div class="highlight"><pre><span class="kn">package</span> <span class="nx">main</span>
|
||||
</pre></div>
|
||||
|
||||
@ -101,7 +101,7 @@ environment.</p>
|
||||
<td class="docs">
|
||||
<p>Use <code>os.Environ</code> to list all key/value pairs in the
|
||||
environment. This returns a slice of strings in the
|
||||
form <code>KEY=value</code>. You can <code>strings.Split</code> them to
|
||||
form <code>KEY=value</code>. You can <code>strings.SplitN</code> them to
|
||||
get the key and value. Here we print all the keys.</p>
|
||||
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user