FAQ

On Mon, Mar 21, 2016 at 11:28 AM, wrote:
But my question is, how do I now make any json Encoder of such a struct
_include_ an empty 'links' list?
That's what you are getting. If it wasn't an empty links list, it would be
nil.

http://play.golang.org/p/hwxKnusoIa

--
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 | 3 of 6 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 21, '16 at 4:27p
activeMar 21, '16 at 4:52p
posts6
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase