FAQ
Because you are trying to put a []Item into a field that expects a
[]Interface. It's not the Items inside that are the problem.

This slightly modified version of your code works:
http://play.golang.org/p/Xr0oERf50k

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 12 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedApr 6, '16 at 6:36p
activeApr 9, '16 at 1:17p
posts12
users8
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase