photoprism/internal/form/search.go
Michael Mayer 7391066fb0 CI: Apply Go linter recommendations to "internal/form" package #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-22 12:09:21 +01:00

14 lines
331 B
Go

package form
// SearchForm defines the minimal interface for query string parsing.
type SearchForm interface {
GetQuery() string
SetQuery(q string)
}
// ParseQueryString populates the search form fields from its query string.
func ParseQueryString(f SearchForm) (result error) {
q := f.GetQuery()
return Unserialize(f, q)
}