feat: Host environment (#1293)

This commit is contained in:
ChristopherHX authored and GitHub committed 2022-11-16 21:29:45 +00:00
1 parent 64e68bd7f2
commit f2b98ed301
39 files changed
+1396 -187

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package lookpath
import "os"
type Env interface {
Getenv(name string) string
}
type defaultEnv struct {
}
func (*defaultEnv) Getenv(name string) string {
return os.Getenv(name)
}
func LookPath(file string) (string, error) {
return LookPath2(file, &defaultEnv{})
}