]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: hide TotalSize
authorRob Pike <r@golang.org>
Wed, 8 Feb 2012 03:09:20 +0000 (14:09 +1100)
committerRob Pike <r@golang.org>
Wed, 8 Feb 2012 03:09:20 +0000 (14:09 +1100)
commit52ebadd3569b31ce423d4868ac9aa54a373aa1ad
tree321aca3f752539902795d92075331419eb0ebe7e
parentf23a6dba5e7a477b15bb10c5f630df01b5f0ea88
encoding/binary: hide TotalSize

The function has a bizarre signature: it was the only public function there
that exposed the reflect package. Also, its definition is peculiar and hard to
explain. It doesn't merit being exported.

This is an API change but really, it should never have been exported and
it's certain very few programs will depend on it: it's too weird.

Fixes #2846.

R=golang-dev, gri, bradfitz
CC=golang-dev
https://golang.org/cl/5639054
doc/go1.html
doc/go1.tmpl
src/pkg/encoding/binary/binary.go
src/pkg/encoding/binary/binary_test.go