mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-14 20:17:25 +00:00
feat: rewrite LoLdleData in Go
4-stage pipeline: fetch ddragon champions, enrich with release dates (wiki scrape), regions (Universe API), and lanes (wiki scrape). Concurrent gender detection via goroutines with semaphore.
This commit is contained in:
1 parent
361e09910b
commit
cfa664f217
11 files changed
+556
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package parser
|
||||
|
||||
// buildNameIndex creates a map from champion name to slice index for O(1) lookups.
|
||||
func buildNameIndex(champions []ChampionResult) map[string]int {
|
||||
idx := make(map[string]int, len(champions))
|
||||
for i, c := range champions {
|
||||
idx[c.Name] = i
|
||||
}
|
||||
return idx
|
||||
}
|
||||
Reference in new issue
Block a user