formidable/internal/data/format/query.go

8 lines
141 B
Go

package format
import "net/url"
func MatchURLQueryFormat(url *url.URL, format string) bool {
return url.Query().Get("format") == format
}