utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MultipleKeyPartsLength = 2

Variables

View Source
var (
	ErrEmptyInput = errors.New("empty data")
)

Functions

func CreateApiKeys

func CreateApiKeys[T any](keys []string, provider func(k, v string) T) []T

func PickRandom

func PickRandom[T any](v []T, sourceName string) T

func Sanitize added in v0.0.2

func Sanitize(data string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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