INNER CODE UNIT · Go

valOrGetenv

cweill/gotests · gotests/main.go:170

func valOrGetenv(val, key string) string {
	if val != "" {
		return val
	}
	return os.Getenv(key)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…