Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Generics: Is this not supported ?
183 views
Skip to first unread message
Elemer Pixard
unread,
Oct 25, 2022, 10:37:46 AM
10/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I am trying to create a generic function which returns
a Container with a slice of the specified type T:
https://go.dev/play/p/GS_x9Y8HOMK
Is this not supported or am I doing something wrong ?
Regards.
Ian Lance Taylor
unread,
Oct 25, 2022, 7:54:27 PM
10/25/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Elemer Pixard, golang-nuts
I'm not quite sure why that doesn't work. Please open a bug report at
https://go.dev/issue
. Thanks.
Ian
Reply all
Reply to author
Forward
0 new messages