(val reflect.Value)
| 1500 | } |
| 1501 | |
| 1502 | func getKind(val reflect.Value) reflect.Kind { |
| 1503 | kind := val.Kind() |
| 1504 | |
| 1505 | switch { |
| 1506 | case kind >= reflect.Int && kind <= reflect.Int64: |
| 1507 | return reflect.Int |
| 1508 | case kind >= reflect.Uint && kind <= reflect.Uint64: |
| 1509 | return reflect.Uint |
| 1510 | case kind >= reflect.Float32 && kind <= reflect.Float64: |
| 1511 | return reflect.Float32 |
| 1512 | default: |
| 1513 | return kind |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | func isStructTypeConvertibleToMap(typ reflect.Type, checkMapstructureTags bool, tagName string) bool { |
| 1518 | for i := 0; i < typ.NumField(); i++ { |
no outgoing calls
no test coverage detected
searching dependent graphs…