diff --git a/strings.go b/strings.go index 5280952..5442000 100644 --- a/strings.go +++ b/strings.go @@ -5,9 +5,9 @@ import ( "strconv" ) -func coalesce(value, fallback string) string { - if value == "" { - return fallback +func coalesce(value string, fallback ...string) string { + if value == "" && len(fallback) > 0 { + coalesce(fallback[0], fallback[1:]...) } return value }