Documentation
¶
Overview ¶
Package byteview provides a mechanism to handle strings and []byte as immutable byte views.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
func (*Builder[T]) WriteByteView ¶
type ByteView ¶
type ByteView struct {
// contains filtered or unexported fields
}
func SplitLines ¶
SplitLines splits the input on '\n' and returns the lines including the newline character and and either -1 if the last line ends in a newline character or len([]ByteView) if it's missing a newline character.
Click to show internal directories.
Click to hide internal directories.