util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFilterSize

func CalculateFilterSize(length uint, errorRate float64) uint

func CalculateFingerPrintLength

func CalculateFingerPrintLength(size uint64, errorRate float64) uint64

func CalculateNumHashes

func CalculateNumHashes(size, length uint) uint

func ConvertByteToLittleEndianByte

func ConvertByteToLittleEndianByte(originalByte byte) byte

func Flatten

func Flatten[T any](lists [][]T) []T

func GenerateRandomString

func GenerateRandomString(n int) string

func Max

func Max(a, b uint) uint

func ReverseBytes

func ReverseBytes(slice []byte)

Types

type BitSetType

type BitSetType int
const (
	RedisBitSet BitSetType = iota
	InMemoryBitSet
)

Jump to

Keyboard shortcuts

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