Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadLines ¶ added in v0.17.6
HeadLines returns the longest prefix of s that fits in n bytes and ends at a line boundary, without the trailing newline. A single line longer than n is cut at a byte boundary instead, so the result is never empty for non-empty input and a positive n.
func LineCount ¶ added in v0.16.10
LineCount counts logical lines, excluding the empty suffix after a final newline.
func TailLines ¶ added in v0.17.6
TailLines returns the longest suffix of s that fits in n bytes and starts at a line boundary. A single line longer than n is cut at a byte boundary instead, so the result is never empty for non-empty input and a positive n.
func TruncateHead ¶ added in v0.6.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.