(pos int)
| 46 | } |
| 47 | |
| 48 | func (l *List) FileOf(pos int) File { |
| 49 | i := sort.Search(len(l.Files), func(i int) bool { return l.Files[i].start > pos }) - 1 |
| 50 | return l.Files[i] |
| 51 | } |
| 52 | |
| 53 | // Concat reads in the indicated files and concatenates their content with |
| 54 | // newlines appending the final query text. |