docker-s3-backup/internal/env.go

14 lines
187 B
Go

package internal
import (
"os"
)
func GetEnvWithDefault(name string, defaultValue string) string {
value := os.Getenv(name)
if value != "" {
return value
}
return defaultValue
}