Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterChar ¶
func IterChar[Data ~[]byte, Char any](d Data, next func([]byte) (char Char, length int)) iter.Seq[Char]
Example (Utf8) ¶
package main
import (
"fmt"
"unicode/utf8"
"go.llib.dev/frameless/pkg/bytekit"
)
func main() {
var data []byte
for char := range bytekit.IterChar(data, utf8.DecodeRune) {
fmt.Print(char)
}
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.