formidable/internal/data/format/query.go

8 lines
141 B
Go
Raw Normal View History

2022-05-05 16:22:52 +02:00
package format
import "net/url"
func MatchURLQueryFormat(url *url.URL, format string) bool {
return url.Query().Get("format") == format
}