mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor
This commit is contained in:
parent
4ecc9e3831
commit
ad80a14b8f
2
go.mod
2
go.mod
|
@ -16,7 +16,7 @@ require (
|
|||
github.com/fatih/structs v1.1.0
|
||||
github.com/flosch/pongo2/v4 v4.0.2
|
||||
github.com/go-redis/redis/v8 v8.11.4
|
||||
github.com/goccy/go-json v0.9.4
|
||||
github.com/goccy/go-json v0.9.5
|
||||
github.com/golang/snappy v0.0.4
|
||||
github.com/google/uuid v1.3.0
|
||||
github.com/iris-contrib/httpexpect/v2 v2.3.1
|
||||
|
|
4
go.sum
generated
4
go.sum
generated
|
@ -66,8 +66,8 @@ github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
|
|||
github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
|
||||
github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA=
|
||||
github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0=
|
||||
github.com/goccy/go-json v0.9.4 h1:L8MLKG2mvVXiQu07qB6hmfqeSYQdOnqPot2GhsIwIaI=
|
||||
github.com/goccy/go-json v0.9.4/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||
github.com/goccy/go-json v0.9.5 h1:ooSMW526ZjK+EaL5elrSyN2EzIfi/3V0m4+HJEDYLik=
|
||||
github.com/goccy/go-json v0.9.5/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
|
|
|
@ -174,10 +174,14 @@ func (r *Row) lookupStructFieldPtrs(typ reflect.Type, val reflect.Value, columnT
|
|||
continue
|
||||
}
|
||||
|
||||
tableColumnField, err := val.FieldByIndexErr(tableColumn.FieldIndex)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("column: %q: %w", tableColumn.Name, err)
|
||||
}
|
||||
// TODO: when go 1.18 released, replace with that:
|
||||
/*
|
||||
tableColumnField, err := val.FieldByIndexErr(tableColumn.FieldIndex)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("column: %q: %w", tableColumn.Name, err)
|
||||
}
|
||||
*/
|
||||
tableColumnField := val.FieldByIndex(tableColumn.FieldIndex)
|
||||
|
||||
tableColumnFieldType := tableColumnField.Type()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user