Not needed

This commit is contained in:
Daniel Ponte 2024-12-29 13:07:09 -05:00
parent 35fca265e5
commit 5b10c76a9f

View file

@ -14,7 +14,6 @@ import (
"dynatron.me/x/stillbox/internal/jsontypes"
"github.com/araddon/dateparse"
"github.com/google/uuid"
)
func (o *options) parseTime(s string, dpo ...dateparse.ParserOption) (t time.Time, set bool, err error) {
@ -213,20 +212,6 @@ func (o *options) unmIterFields(r *http.Request, destStruct reflect.Value) error
return err
}
setVal(destFieldVal, set, d)
case jsontypes.UUIDs:
val := strings.Trim(ff, "[]")
if val == "" && o.acceptBlank {
continue
}
vals := strings.Split(val, ",")
ar := make([]jsontypes.UUID, 0, len(vals))
for _, v := range vals {
i, err := uuid.Parse(v)
if err == nil {
ar = append(ar, jsontypes.UUID(i))
}
}
destFieldVal.Set(reflect.ValueOf(ar))
case []int:
val := strings.Trim(ff, "[]")
if val == "" && o.acceptBlank {