David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 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 | |
| 5 | // Windows environment variables. |
| 6 | |
| 7 | package windows |
| 8 | |
| 9 | import "syscall" |
| 10 | |
| 11 | func Getenv(key string) (value string, found bool) { |
| 12 | return syscall.Getenv(key) |
| 13 | } |
| 14 | |
| 15 | func Setenv(key, value string) error { |
| 16 | return syscall.Setenv(key, value) |
| 17 | } |
| 18 | |
| 19 | func Clearenv() { |
| 20 | syscall.Clearenv() |
| 21 | } |
| 22 | |
| 23 | func Environ() []string { |
| 24 | return syscall.Environ() |
| 25 | } |