(typ reflect.Type)
| 40 | } |
| 41 | |
| 42 | func getEncoder(typ reflect.Type) encoderFunc { |
| 43 | if v, ok := typeEncMap.Load(typ); ok { |
| 44 | return v.(encoderFunc) |
| 45 | } |
| 46 | fn := _getEncoder(typ) |
| 47 | typeEncMap.Store(typ, fn) |
| 48 | return fn |
| 49 | } |
| 50 | |
| 51 | func _getEncoder(typ reflect.Type) encoderFunc { |
| 52 | kind := typ.Kind() |
no test coverage detected
searching dependent graphs…