Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitParagraph ¶
SplitTextByLength splits text into chunks of specified maxLength, preserving complete words and special characters like newlines. It returns a slice of strings, each with length <= maxLength.
func UniqueSlice ¶
func UniqueSlice[T Comparable](s []T) []T
Types ¶
type Comparable ¶
Click to show internal directories.
Click to hide internal directories.