// Package util holds small shared helpers used across internal packages to // avoid divergent same-named copies. package util import "strings" // FirstNonEmpty returns the first trimmed-non-empty value, or "" when none of // the values are non-empty. Callers that need a specific fallback for the // all-empty case should apply it explicitly at the call site. func FirstNonEmpty(values ...string) string { for _, v := range values { if strings.TrimSpace(v) != "" { return v } } return "" }