ReadStringsFormValue 추가
This commit is contained in:
@ -488,6 +488,13 @@ func ReadStringFormValue(r url.Values, key string) (string, bool) {
|
|||||||
return strval, len(strval) > 0
|
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 {
|
type encoder interface {
|
||||||
Encode(any) error
|
Encode(any) error
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user