bytestrings

package
v1.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextNonEmptyLine

func NextNonEmptyLine[T ~[]byte | ~string](text T) (T, T)

NextNonEmptyLine returns the next non-empty line and the remaining text. The line has its line feed ('\n') and carriage return ('\r') characters removed.

func NonEmptyLines added in v1.11.1

func NonEmptyLines[T ~[]byte | ~string](text T) iter.Seq[T]

NonEmptyLines returns an iterator over the non-empty lines in the text, with line feed ('\n') and carriage return ('\r') characters removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL