package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Oct 7, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Count returns the number of targetable logical lines in text.
type Line struct {
Start int
ContentEnd int
End int
}
Line identifies one logical line using UTF-8 byte offsets. End includes the
line terminator, while ContentEnd excludes it.
At returns one positive one-based logical line without allocating the complete line table.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.