env_windows.go 487 B

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