Add os.LookupEnv() stub

os.Getenv() was already stubbed out, but os.LookupEnv() wasn't. This
will allow me to compile my program unmodified without using separate
files and build tags.
This commit is contained in:
Martin Tournoij
2020-10-23 07:18:07 +08:00
committed by Ayke
parent 6eeebfeb5c
commit ff833ef998
+4
View File
@@ -3,3 +3,7 @@ package os
func Getenv(key string) string {
return ""
}
func LookupEnv(key string) (string, bool) {
return "", false
}