(idx *index.Index)
| 1084 | } |
| 1085 | |
| 1086 | func (b *indexBuilder) Write(idx *index.Index) { |
| 1087 | idx.Entries = idx.Entries[:0] |
| 1088 | for _, e := range b.entries { |
| 1089 | idx.Entries = append(idx.Entries, e) |
| 1090 | } |
| 1091 | } |
| 1092 | |
| 1093 | func (b *indexBuilder) Add(e *index.Entry) { |
| 1094 | b.entries[e.Name] = e |
no outgoing calls