constructKey builds a key by concatenating field values
(l baker.Record)
| 90 | |
| 91 | // constructKey builds a key by concatenating field values |
| 92 | func (f *Dedup) constructKey(l baker.Record) string { |
| 93 | fields := make([][]byte, len(f.fields)) |
| 94 | for i, idx := range f.fields { |
| 95 | fields[i] = l.Get(idx) |
| 96 | } |
| 97 | return string(bytes.Join(fields, f.sep)) |
| 98 | } |