compiler,reflect: fix pkgpath for struct fields

This commit is contained in:
Damian Gryski
2023-03-08 12:28:51 -08:00
committed by Ayke
parent 1626b50457
commit 344e493ac8
4 changed files with 56 additions and 23 deletions
+1
View File
@@ -481,6 +481,7 @@ func showValue(rv reflect.Value, indent string) {
for i := 0; i < rv.NumField(); i++ {
field := rt.Field(i)
println(indent+" field:", i, field.Name)
println(indent+" pkg:", field.PkgPath)
println(indent+" tag:", strconv.Quote(string(field.Tag)))
println(indent+" embedded:", field.Anonymous)
println(indent+" exported:", field.IsExported())