MCPcopy Create free account
hub / github.com/blues/note / typeByIndex

Function typeByIndex

jsonxt/encode.go:851–859  ·  view source on GitHub ↗
(t reflect.Type, index []int)

Source from the content-addressed store, hash-verified

849}
850
851func typeByIndex(t reflect.Type, index []int) reflect.Type {
852 for _, i := range index {
853 if t.Kind() == reflect.Ptr {
854 t = t.Elem()
855 }
856 t = t.Field(i).Type
857 }
858 return t
859}
860
861type reflectWithString struct {
862 v reflect.Value

Callers 1

typeFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected