(typ reflect.Type)
| 47 | } |
| 48 | |
| 49 | func getDecoder(typ reflect.Type) decoderFunc { |
| 50 | if v, ok := typeDecMap.Load(typ); ok { |
| 51 | return v.(decoderFunc) |
| 52 | } |
| 53 | fn := _getDecoder(typ) |
| 54 | typeDecMap.Store(typ, fn) |
| 55 | return fn |
| 56 | } |
| 57 | |
| 58 | func _getDecoder(typ reflect.Type) decoderFunc { |
| 59 | kind := typ.Kind() |
no test coverage detected
searching dependent graphs…