Skip to content
Myr

Merge pull request #188 from gin-gonic/fix-binding

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix unexported field detection

authored by Javier Provecho Fernandez · committed by Javier Provecho Fernandez · parents a5ec533, 6d92063 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:binding/binding.go+1 added-1 removed
168 unmodified lines
169 for i := 0; i < typ.NumField(); i++ {170 field := typ.Field(i)171172 // Allow ignored and unexported fields in the struct173 if field.Tag.Get("form") == "-" || field.PkgPath != "" {173 if len(field.PkgPath) > 0 || field.Tag.Get("form") == "-" {174 continue175 }176177 fieldValue := val.Field(i).Interface()
39 unmodified lines