Versions in this module Expand all Collapse all v0 v0.42.5 Jan 27, 2026 v0.42.4 Jan 27, 2026 Changes in this version + var TypesReplacer = strings.NewReplacer(" ", "_", ".", "_", ",", "_", "*", "_", "[", "_", "]", "_") + func AllColsInList(cols []string, lists ...[]string) bool + func Delete(from, to int) deleteRule + func EditCallback(rule EditRule, callbacks ...func(start, end int, before, after string) error) callbackRule + func EditString(s string, rules ...EditRule) (string, error) + func EditStringSegment(s string, from, to int, rules ...EditRule) (string, error) + func Except[T comparable](src []T, excludes ...T) []T + func FilterNonZero[T comparable](s []T) []T + func FirstNonEmpty[T comparable, Ts ~[]T](slice Ts) T + func Insert(pos int, content string) insertRule + func InsertFromFunc(pos int, content func() string) insertRule + func Only[T comparable](src []T, includes ...T) []T + func Pointer[T any](val T) *T + func RandInt() int64 + func RemoveDuplicates[T comparable, Ts ~[]T](slice Ts) Ts + func Replace(from, to int, content string) replaceRule + func ReplaceFromFunc(from, to int, content func() string) replaceRule + func SliceMatch[T comparable, Ts ~[]T](a, b Ts) bool + func ToAnySlice[T any, Ts ~[]T](slice Ts) []any + func ValOrZero[T comparable](val *T) T + type EditRule interface + func RecordPoint(point int, callbacks ...func(point int) error) EditRule + func RecordPoints(oldStart, oldEnd int, callbacks ...func(start, end int) error) []EditRule + type OutOfBoundsError int + func (e OutOfBoundsError) Error() string + func (e OutOfBoundsError) Is(target error) bool + type RuleType int + const DeleteRuleType + const InsertRuleType + const ReplaceRuleType + func (r RuleType) String() string