Panic when nesting strings. Test panic scenarios.
authorrw <me@rwinslow.com>
Wed, 24 Jun 2015 15:53:44 +0000 (11:53 -0400)
committerrw <me@rwinslow.com>
Wed, 24 Jun 2015 15:53:44 +0000 (11:53 -0400)
commit4d305f5922c52935006987ef27f29516d3fd1583
tree08bca7af73641f6502c16a55c951c1a1e35852a4
parent1e6f8f5b8c4d0407d7db750858e7863e07091958
Panic when nesting strings. Test panic scenarios.

Also add a new `insideObject` boolean to the Builder to track whether an
object is currently being constructed. This fixes a bug with objects
that have zero fields.
go/builder.go
tests/go_test.go