End returns the location of the last character in the buffer
()
| 318 | |
| 319 | // End returns the location of the last character in the buffer |
| 320 | func (la *LineArray) End() Loc { |
| 321 | numlines := len(la.lines) |
| 322 | return Loc{util.CharacterCount(la.lines[numlines-1].data), numlines - 1} |
| 323 | } |
| 324 | |
| 325 | // LineBytes returns line n as an array of bytes |
| 326 | func (la *LineArray) LineBytes(lineN int) []byte { |
nothing calls this directly
no test coverage detected