From 9ee1829d35f1f977549ca1a88739da7488b046d3 Mon Sep 17 00:00:00 2001 From: Zamir Amir <40475662+zamiramir@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:04:50 +0100 Subject: [PATCH] Update fields.go remove sort of fields --- fields.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/fields.go b/fields.go index 0ea28bd..24d0166 100644 --- a/fields.go +++ b/fields.go @@ -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.