docker-s3-backup/internal/env.go

14 lines
187 B
Go
Raw Permalink Normal View History

2023-09-14 22:15:37 +00:00
package internal
import (
"os"
)
func GetEnvWithDefault(name string, defaultValue string) string {
value := os.Getenv(name)
if value != "" {
return value
}
return defaultValue
}