blob: a9d8ef4b7d016f4ddf12a65835538c15b003b17d [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// 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}