diff --git a/server.go b/server.go index c6067f3..2556086 100644 --- a/server.go +++ b/server.go @@ -488,6 +488,13 @@ func ReadStringFormValue(r url.Values, key string) (string, bool) { return strval, len(strval) > 0 } +func ReadStringsFormValue(r url.Values, key string) ([]string, bool) { + if r.Has(key) { + return (map[string][]string)(r)[key], true + } + return nil, false +} + type encoder interface { Encode(any) error }