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.

25 lines
487 B

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