diff options
| author | davy <davy.wybiral@gmail.com> | 2019-06-28 17:20:52 -0500 |
|---|---|---|
| committer | davy <davy.wybiral@gmail.com> | 2019-06-28 17:20:52 -0500 |
| commit | b46830c8806fc1293bc8cfdf5496cd024fcde6c4 (patch) | |
| tree | 409ac133758cd0e745fe930e0d30e5821e8e4190 /vendor/golang.org/x/sys/unix/env_unix.go | |
| parent | ef01f99df7dafc61c11203e879e997c15dea98ca (diff) | |
added app.Watcher
Diffstat (limited to 'vendor/golang.org/x/sys/unix/env_unix.go')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/env_unix.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/env_unix.go b/vendor/golang.org/x/sys/unix/env_unix.go new file mode 100644 index 0000000..84178b0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/env_unix.go @@ -0,0 +1,31 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris + +// Unix environment variables. + +package unix + +import "syscall" + +func Getenv(key string) (value string, found bool) { + return syscall.Getenv(key) +} + +func Setenv(key, value string) error { + return syscall.Setenv(key, value) +} + +func Clearenv() { + syscall.Clearenv() +} + +func Environ() []string { + return syscall.Environ() +} + +func Unsetenv(key string) error { + return syscall.Unsetenv(key) +} |
