dd442ab9e9
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
12 lines
185 B
Go
12 lines
185 B
Go
package form
|
|
|
|
type SearchForm interface {
|
|
GetQuery() string
|
|
SetQuery(q string)
|
|
}
|
|
|
|
func ParseQueryString(f SearchForm) (result error) {
|
|
q := f.GetQuery()
|
|
|
|
return Unserialize(f, q)
|
|
}
|