util

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcPartition added in v0.34.0

func CalcPartition(hash, partitions uint32) uint32

func HashToInt added in v0.37.0

func HashToInt(s string) int32

Hash returns the hash code for s

func IfZero added in v0.34.0

func IfZero[T comparable](test, def T) T

func Int32ring added in v0.32.0

func Int32ring(x uint32) int32

func MapMerge added in v0.36.0

func MapMerge[K comparable, V any](ms ...map[K]V) map[K]V

func NormalizePartitions added in v0.34.0

func NormalizePartitions(p []int32) []uint32

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