env_windows.go 553 B

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