Mercurial > yakumo_izuru > aya
comparison vendor/golang.org/x/sys/unix/env_unix.go @ 66:787b5ee0289d draft
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Sun, 23 Jul 2023 13:18:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
65:6d985efa0f7a | 66:787b5ee0289d |
---|---|
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 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos | |
6 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos | |
7 | |
8 // Unix environment variables. | |
9 | |
10 package unix | |
11 | |
12 import "syscall" | |
13 | |
14 func Getenv(key string) (value string, found bool) { | |
15 return syscall.Getenv(key) | |
16 } | |
17 | |
18 func Setenv(key, value string) error { | |
19 return syscall.Setenv(key, value) | |
20 } | |
21 | |
22 func Clearenv() { | |
23 syscall.Clearenv() | |
24 } | |
25 | |
26 func Environ() []string { | |
27 return syscall.Environ() | |
28 } | |
29 | |
30 func Unsetenv(key string) error { | |
31 return syscall.Unsetenv(key) | |
32 } |