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:
tiennm99 committed 2026-04-04 18:06:48 +07:00
1 parent 361e09910b
commit cfa664f217
11 files changed
+556

No files matched your search

+10
View File
@@ -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
}