act/pkg/lookpath/env.go

19 lines
272 B
Go
Raw Permalink Normal View History

2022-11-16 15:29:45 -06:00
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{})
}