(rt reflect.Type)
| 126 | } |
| 127 | |
| 128 | func isStructType(rt reflect.Type) bool { |
| 129 | if rt.Kind() == reflect.Struct { |
| 130 | return true |
| 131 | } |
| 132 | if rt.Kind() == reflect.Pointer && rt.Elem().Kind() == reflect.Struct { |
| 133 | return true |
| 134 | } |
| 135 | return false |
| 136 | } |
| 137 | |
| 138 | func isByteArrayType(t reflect.Type) bool { |
| 139 | return t.Kind() == reflect.Slice && t.Elem().Kind() == reflect.Uint8 |