gignore/cmd/gignore/util.go
onyx-and-iris a3c2d2cfbf
Some checks are pending
CI / Lint (push) Waiting to run
test against empty string
2025-03-13 18:22:52 +00:00

12 lines
158 B
Go

package main
import "os"
func getEnv(key, defaultValue string) string {
value := os.Getenv(key)
if value == "" {
return defaultValue
}
return value
}