router/values.go

14 lines
218 B
Go

package router
type values interface {
mustEmbedValues()
}
type Values map[string][]string
func (Values) mustEmbedValues() {}
func (v Values) Parse(data any) error {
return genericValues(v).Parse(data, "form")
}