You have not initialized your inner map. Before your for loop you can add m["uid"] = make(map[string]T)
and then assign the name.
You have not initialized your inner map. Before your for loop you can add m["uid"] = make(map[string]T)
and then assign the name.