diff --git a/rql.go b/rql.go index b42c7bb..1dad689 100644 --- a/rql.go +++ b/rql.go @@ -275,7 +275,7 @@ func (p *Parser) parseField(sf reflect.StructField) error { p.Log("Ignoring unknown option %q in struct tag", opt) } } - filterOps := make([]Op, 0) + var filterOps []Op switch typ := indirect(sf.Type); typ.Kind() { case reflect.Bool: f.ValidateFn = validateBool