mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
compiler,reflect: fix pkgpath for struct fields
This commit is contained in:
Vendored
+1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user