您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

30 行
553 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. }
  19. func Unsetenv(key string) error {
  20. return syscall.Unsetenv(key)
  21. }