Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdRoll/baker
/ cityToInt
Function
cityToInt
examples/sharding/shard.go:19–21 ·
view source on GitHub ↗
(r baker.Record)
Source
from the content-addressed store, hash-verified
17
}
18
19
func
cityToInt(r baker.Record) uint64 {
20
return
simpleHash(r, City)
21
}
22
23
func
simpleHash(r baker.Record, idx baker.FieldIndex) uint64 {
24
f := fnv.New64()
Callers
nothing calls this directly
Calls
1
simpleHash
Function · 0.70
Tested by
no test coverage detected