Skip to content

Commit

Permalink
Fix unexported check in reflection (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
evalphobia authored Sep 4, 2017
1 parent d1c1f95 commit a36a23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func getShardKeyFromStruct(p interface{}, tagName string) int64 {
values := toValue(p)
for i, max := 0, t.NumField(); i < max; i++ {
f := t.Field(i)
if f.PkgPath != "" {
if f.PkgPath != "" && !f.Anonymous {
continue
}

Expand Down

0 comments on commit a36a23d

Please sign in to comment.