Reduce allocations when reusing a Builder.
authorrw <me@rwinslow.com>
Fri, 3 Apr 2015 02:33:00 +0000 (19:33 -0700)
committerrw <me@rwinslow.com>
Fri, 3 Apr 2015 02:33:00 +0000 (19:33 -0700)
commitd756efbf764af942ef0563b2a1141349fbc4e72b
tree38658f8c5db10dee34247581a3084d1ad8717a0b
parentace7fa8094de5ba92a74dce63903f8386d30e8b8
Reduce allocations when reusing a Builder.

Add the function `Reset` to the Builder, which facilitates reuse of the
underlying byte slice.
go/builder.go
tests/GoTest.sh
tests/go_test.go