From b044d27dff9bce24ab11e512d1b8765d68e65c18 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Mon, 6 Mar 2023 11:43:58 -0800 Subject: [PATCH] reflect: move StructField.Anonymous field to match upstream location --- src/reflect/type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reflect/type.go b/src/reflect/type.go index 51c246ce..c7c05cec 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -974,9 +974,9 @@ type StructField struct { Type Type Tag StructTag // field tag string - Anonymous bool Offset uintptr Index []int // index sequence for Type.FieldByIndex + Anonymous bool } // IsExported reports whether the field is exported. @@ -992,8 +992,8 @@ type rawStructField struct { PkgPath string Type *rawType Tag StructTag - Anonymous bool Offset uintptr + Anonymous bool } // A StructTag is the tag string in a struct field.