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 PM11/5/12
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 AM11/6/12
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