Skip to content

Commit

Permalink
Prepare for go 1.6 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hypirion committed Jan 30, 2016
1 parent 1ebabfd commit cc873fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ func typeFields(t reflect.Type) []field {
// Scan f.typ for fields to include.
for i := 0; i < f.typ.NumField(); i++ {
sf := f.typ.Field(i)
if sf.PkgPath != "" { // unexported
if sf.PkgPath != "" && !sf.Anonymous { // unexported
continue
}
tag := sf.Tag.Get("edn")
Expand Down

0 comments on commit cc873fc

Please sign in to comment.