The program counts how many times each HTTP header name appeared in a set of requests. After a recent simplification of the logic, the final output no longer matches the actually processed data, although the program exits without panicking.
stdout.go run .
stdout exactly, including case, spaces, and punctuation.1.24go run ., without -racesync.WaitGroupmap is protected by sync.Mutex, so behavior is deterministichttp.Request and http.Header in memory are usedClick a line and write what it prints. Explanation is optional.