2020-01-15 04:04:33 +01:00
|
|
|
package form
|
|
|
|
|
|
|
|
type SearchForm interface {
|
|
|
|
GetQuery() string
|
|
|
|
SetQuery(q string)
|
|
|
|
}
|
|
|
|
|
|
|
|
func ParseQueryString(f SearchForm) (result error) {
|
|
|
|
q := f.GetQuery()
|
|
|
|
|
2020-05-30 01:41:47 +02:00
|
|
|
return Unserialize(f, q)
|
2020-01-15 04:04:33 +01:00
|
|
|
}
|