Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Re: [go-nuts] len error on pointers to maps
123 views
Skip to first unread message
David Symonds
unread,
Nov 5, 2012, 6:20:23 PM
11/5/12
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 Scott Turnbull, golan...@googlegroups.com
You almost certainly don't want a map pointer. Maps are reference types already.
Kevin Gillette
unread,
Nov 6, 2012, 5:43:51 AM
11/6/12
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 golan...@googlegroups.com
See <
http://blog.golang.org/2011/01/go-slices-usage-and-internals.html
>. The nature of map and channel "values" are very similar to slices. You can't produce a copy of the map data itself just by assigning it to another variable.
Reply all
Reply to author
Forward
0 new messages