WithDecoderDictDelete removes dictionaries by ID. If no ids are passed, all dictionaries are deleted. Should be used with ResetWithOptions.
(ids ...uint32)
| 201 | // If no ids are passed, all dictionaries are deleted. |
| 202 | // Should be used with ResetWithOptions. |
| 203 | func WithDecoderDictDelete(ids ...uint32) DOption { |
| 204 | return func(o *decoderOptions) error { |
| 205 | if len(ids) == 0 { |
| 206 | clear(o.dicts) |
| 207 | } |
| 208 | for _, id := range ids { |
| 209 | delete(o.dicts, id) |
| 210 | } |
| 211 | return nil |
| 212 | } |
| 213 | } |
no outgoing calls
searching dependent graphs…