internal

package
v0.0.0-...-54fda87 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChunks

func GetChunks(req *v1.ChunkingInput) ([][]int, error)

GetChunks chunks the input and returns chunk indices of each chunk. If the req is nil it rerurns error.

func GetChunksIndices

func GetChunksIndices(chunks []string, s string) [][]int

GetChunksIndices returns indices of each chunk in chunks inside s.

func SplitStringByChars

func SplitStringByChars(s string, size int) (string, string)

SplitStringByChars slices the input string into two parts: 1. has exactly size characters 2. contains the remaining characters

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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