mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
reflect: add StructField.IsExported method
This field was introduced in Go 1.17 and is used by the encoding/json package (starting with Go 1.17).
This commit is contained in:
committed by
Ron Evans
parent
ad73986070
commit
d45497691f
Vendored
+1
@@ -398,6 +398,7 @@ func showValue(rv reflect.Value, indent string) {
|
||||
println(indent+" field:", i, field.Name)
|
||||
println(indent+" tag:", field.Tag)
|
||||
println(indent+" embedded:", field.Anonymous)
|
||||
println(indent+" exported:", field.IsExported())
|
||||
showValue(rv.Field(i), indent+" ")
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user