Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Go 1.18 Beta 1 is available, with generics. Parent comment
Go's for loops can only iterate over builtin types: slices, maps, channels, etc. You can't produce a custom type that is to be iterated over.
1. https://github.com/BurntSushi/go-sumtype
There are no comments on this comment yet.
Go's for loops can only iterate over builtin types: slices, maps, channels, etc. You can't produce a custom type that is to be iterated over.
1. https://github.com/BurntSushi/go-sumtype