Install
go get toolman.org/base/osutil
osutil
import "toolman.org/base/osutil"
Overview
Package osutil provides convenience functions for OS interaction
Index
Package files
func FindEnvDefault
func FindEnvDefault(defaultValue string, vars ...string) string
FindEnvDefault examines the environment variables specified by vars and returns the value of the first variable found to be set, even if the set value is the empty string. If none of the given vars are set in the current environment, defaultValue is returned instead.