GX3000: route field type cannot bind
A route input field has a type that Gx cannot fill from a request.
Cause
A route input field has a type that Gx cannot fill from a request. Gx fills strings, numbers, booleans, files, structs of these and slices of these.
Example
package route
import "github.com/alternayte/gx"
type List struct {
gx.Route `GET /products`
Filter map[string]string `query:"filter"`
}gx check reports:
shop/route/route.go:7:2: GX3000: field "Filter" has type "map[string]string" which cannot bindFix
- Change the field to a type that Gx can fill.
- Or remove the field and read the value in the handler.