Rebuild for environment-variables

This commit is contained in:
Mark McGranaghan 2019-10-13 18:29:40 -07:00
parent 410beb8393
commit 43825687bb
3 changed files with 5 additions and 5 deletions

View File

@ -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() {

View File

@ -1,2 +1,2 @@
b651bc17e4d2880cba0885c52f476ab2a86e39ae
MTbfmZYa4vP
69d6a768ac84c873ae03b2169ac5cc4cfbc601a6
gSTxKWLOHRb

View File

@ -44,7 +44,7 @@ Let&rsquo;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>