blob: bdc71e241e0c6ee53c568a47377e9ea619393775 [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001// 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
7package windows
8
9import "syscall"
10
11func Getenv(key string) (value string, found bool) {
12 return syscall.Getenv(key)
13}
14
15func Setenv(key, value string) error {
16 return syscall.Setenv(key, value)
17}
18
19func Clearenv() {
20 syscall.Clearenv()
21}
22
23func Environ() []string {
24 return syscall.Environ()
25}
26
27func Unsetenv(key string) error {
28 return syscall.Unsetenv(key)
29}