(typ super.Type, values PrimitiveEncoder)
| 18 | } |
| 19 | |
| 20 | func NewDictEncoder(typ super.Type, values PrimitiveEncoder) Encoder { |
| 21 | if id := typ.ID(); id == super.IDUint8 || id == super.IDInt8 || id == super.IDBool { |
| 22 | return values |
| 23 | } |
| 24 | return &DictEncoder{ |
| 25 | typ: typ, |
| 26 | PrimitiveEncoder: values, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (d *DictEncoder) Encode(group *errgroup.Group) { |
| 31 | group.Go(func() error { |