18 lines
318 B
Go
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")
|
|
}
|