diff --git a/src/reflect/type.go b/src/reflect/type.go index ff58175b..ef9bc1c2 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -594,10 +594,7 @@ func rawStructFieldFromPointer(fieldType *rawType, data unsafe.Pointer, flagsByt pkgPath := "" if flagsByte&structFieldFlagIsExported == 0 { // This field is unexported. - // TODO: list the real package path here. Storing it should not - // significantly impact binary size as there is only a limited - // number of packages in any program. - pkgPath = "" + pkgPath = fieldType.PkgPath() } return rawStructField{