mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
WASI & darwin: support env variables based on libc
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
committed by
Ron Evans
parent
c299386906
commit
9841ac4acd
+7
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user