News for hackers. Stuff that matters.
Re:Half a million lines of Go by jimsmart on Sunday May 16, 2021 @08:05PM (#27178535)
Arrays/slices and maps are in fact provided as built-ins that function like generics, e.g. []foo and map[foo]bar work as expected, as do associated helper methods.

But those are the only container types with built-in support like that. (Channels can similarly be of any type)

There are no comments on this comment yet.