FAQ
+1
On Monday, July 7, 2014 4:49:58 PM UTC-7, tjholo...@gmail.com wrote:

I have no real comment other than +1 :D
On Tuesday, 19 November 2013 09:59:01 UTC-8, Dan Dubois wrote:

I know how to initialise this:

type foo struct {
bar struct {
value int
}
}

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

How would I initialise this:
type tar struct {
foo struct {
bar struct {
value int
}
}
}

http://play.golang.org/p/kZwYniUD-L

I have deeply nested structs as a result of JSON decoding but would like
to also create them manually for testing purposes.
--
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

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 10 of 10 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 19, '13 at 11:08p
activeJul 8, '14 at 1:42a
posts10
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase