On Wed, Jun 17, 2020 at 9:35 AM <
hunter...@gmail.com> wrote:
>
> How do I write a function that can take any container? Either a built in container or a user defined structure? Java is awkward when deciding to accept arrays or the List type — is go fated to repeat this awkwardness?
It is as you fear: Go does not have a unified syntax for looping over
either builtin containers or user containers. In Go this rarely comes
up due to the absence of generics.
Ian