Not needed
This commit is contained in:
parent
35fca265e5
commit
5b10c76a9f
1 changed files with 0 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue