mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-22 12:01:52 -07:00
9 lines
337 B
Go
9 lines
337 B
Go
package catalog
|
|
|
|
import "strings"
|
|
|
|
// TrackLookupKey builds a normalized cache key for entity resolution.
|
|
// Uses null-byte separators to avoid collisions between field values.
|
|
func TrackLookupKey(artist, track, album string) string {
|
|
return strings.ToLower(artist) + "\x00" + strings.ToLower(track) + "\x00" + strings.ToLower(album)
|
|
}
|