HashMap just an example implementation of a thread-safe hash map because I never actually implemented it by myself. You should always use map[string]strings for string hash maps. ( or sync.Map if you need a thread-safe one )