env_plan9.go 555 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2011 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.
  4. // Plan 9 environment variables.
  5. package plan9
  6. import (
  7. "syscall"
  8. )
  9. func Getenv(key string) (value string, found bool) {
  10. return syscall.Getenv(key)
  11. }
  12. func Setenv(key, value string) error {
  13. return syscall.Setenv(key, value)
  14. }
  15. func Clearenv() {
  16. syscall.Clearenv()
  17. }
  18. func Environ() []string {
  19. return syscall.Environ()
  20. }
  21. func Unsetenv(key string) error {
  22. return syscall.Unsetenv(key)
  23. }