mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
12 lines
210 B
Go
12 lines
210 B
Go
package reflect
|
|
|
|
import (
|
|
"internal/reflectlite"
|
|
"unsafe"
|
|
)
|
|
|
|
func VisibleFields(t Type) []StructField {
|
|
fields := reflectlite.VisibleFields(toRawType(t))
|
|
return *(*[]StructField)(unsafe.Pointer(&fields))
|
|
}
|