News for hackers. Stuff that matters.
Re:Map[string]interface{} in Go: a user's manual by cratermoon on Monday July 26, 2021 @04:52PM (#27965305)
Yeah, no. That's not what generics mean. A map of any single type with any type for the key is different from a map using generic types.

For generics what you want is not interface{}, which says nothing, but a type T that has meaningful constraints.

There are no comments on this comment yet.