router/values.go
2024-10-10 14:26:07 -04:00

18 lines
318 B
Go

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