mirror of
https://github.com/hanzokv/go.git
synced 2026-09-24 00:31:51 +00:00
* ring: remove external rendezvous dependency by inlining implementation Replace usage of github.com/dgryski/go-rendezvous with an internal implementation to eliminate the external dependency and avoid licence propagation concerns. The implementation preserves the exact hashing algorithm and behaviour: - same hash combination: khash ^ nhash - same mixing function (xorshift* variant) - same node ordering semantics No functional changes intended. * Refactor TestRendezvous to remove randomString function Replaced function with inline string generation for test cases. * test: refactor RendezvousHash tests to use Ginkgo and Gomega * test: improve RendezvousHash test for per-instance determinism and distribution balance * test: enhance distribution verification in RendezvousHash tests
16 lines
297 B
AMPL
16 lines
297 B
AMPL
module github.com/redis/go-redis/example/scan-struct
|
|
|
|
go 1.24
|
|
|
|
replace github.com/redis/go-redis/v9 => ../..
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/redis/go-redis/v9 v9.18.0
|
|
)
|
|
|
|
require (
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
go.uber.org/atomic v1.11.0 // indirect
|
|
)
|