(idx *index.Index)
| 1111 | } |
| 1112 | |
| 1113 | func (b *indexBuilder) Write(idx *index.Index) { |
| 1114 | idx.Entries = idx.Entries[:0] |
| 1115 | for _, e := range b.entries { |
| 1116 | idx.Entries = append(idx.Entries, e) |
| 1117 | } |
| 1118 | } |
| 1119 | |
| 1120 | func (b *indexBuilder) Add(e *index.Entry) { |
| 1121 | b.entries[e.Name] = e |
no outgoing calls