Skip to content

Commit

Permalink
Update fields.go
Browse files Browse the repository at this point in the history
remove sort of fields
  • Loading branch information
zamiramir committed Dec 8, 2023
1 parent c3772b5 commit 9ee1829
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ func typeFields(t reflect.Type) []field {
}
}

sort.Sort(byName(fields))

// Delete all fields that are hidden by the Go rules for embedded fields,
// except that fields with JSON tags are promoted.

Expand Down

0 comments on commit 9ee1829

Please sign in to comment.