1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris windows
9 func gogetenv(key
string) string {
12 throw("getenv before env init")
14 for _
, s
:= range env
{
15 if len(s
) > len(key
) && s
[len(key
)] == '=' && s
[:len(key
)] == key
{