util

package
v0.0.0-...-3ce102d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

func ChunkSlice

func ChunkSlice(length int, chunkSize int) <-chan IndexChunk

func RemoveAll

func RemoveAll(root string) error

func Split

func Split(str string, delimiters ...string) ([]string, error)

Split divides the input string by delimiters in order from the front. The return value has n+1 elements exactly, where n is len(delimiters).

func Unique

func Unique[T comparable](s []T) []T

func Write

func Write(path string, content any, doSort bool) error

Types

type IndexChunk

type IndexChunk struct {
	From, To int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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