2024-10-08 21:57:25 +00:00
|
|
|
package router
|
|
|
|
|
2024-10-09 02:30:29 +00:00
|
|
|
type values interface {
|
|
|
|
mustEmbedValues()
|
|
|
|
}
|
|
|
|
|
2024-10-08 21:57:25 +00:00
|
|
|
type Values map[string][]string
|
|
|
|
|
2024-10-09 02:30:29 +00:00
|
|
|
func (Values) mustEmbedValues() {}
|
|
|
|
|
2024-10-10 18:26:07 +00:00
|
|
|
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")
|
2024-10-08 21:57:25 +00:00
|
|
|
}
|