You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
488 B

  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. }