2014-08-12 01:48:46 +04:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Plan 9 environment variables.
|
|
|
|
|
2014-08-12 02:58:26 +04:00
|
|
|
package plan9
|
2014-08-12 01:48:46 +04:00
|
|
|
|
|
|
|
import (
|
2015-05-14 22:42:33 +03:00
|
|
|
"syscall"
|
2014-08-12 01:48:46 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
func Getenv(key string) (value string, found bool) {
|
2015-05-14 22:42:33 +03:00
|
|
|
return syscall.Getenv(key)
|
2014-08-12 01:48:46 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func Setenv(key, value string) error {
|
2015-05-14 22:42:33 +03:00
|
|
|
return syscall.Setenv(key, value)
|
2014-08-12 01:48:46 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func Clearenv() {
|
2015-05-14 22:42:33 +03:00
|
|
|
syscall.Clearenv()
|
2014-08-12 01:48:46 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func Environ() []string {
|
2015-05-14 22:42:33 +03:00
|
|
|
return syscall.Environ()
|
2014-08-12 01:48:46 +04:00
|
|
|
}
|