WASI & darwin: support env variables based on libc

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2021-02-17 23:50:53 +09:00
committed by Ron Evans
parent c299386906
commit 9841ac4acd
9 changed files with 115 additions and 12 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
package os
import (
"syscall"
)
func Getenv(key string) string {
return ""
v, _ := syscall.Getenv(key)
return v
}
func LookupEnv(key string) (string, bool) {
return "", false
return syscall.Getenv(key)
}