(t reflect.Type, index []int)
| 849 | } |
| 850 | |
| 851 | func 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 | |
| 861 | type reflectWithString struct { |
| 862 | v reflect.Value |