1
0
mirror of https://github.com/golang/go synced 2024-11-23 17:00:07 -07:00

encoding/gob: expose encode/decode example

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/26220045
This commit is contained in:
Andrew Gerrand 2013-11-14 09:20:29 +11:00
parent 833dc85c0f
commit b6c7cc3241

View File

@ -37,7 +37,7 @@ func (v *Vector) UnmarshalBinary(data []byte) error {
}
// This example transmits a value that implements the custom encoding and decoding methods.
func Example_gob_encode_decode() {
func Example_encodeDecode() {
var network bytes.Buffer // Stand-in for the network.
// Create an encoder and send a value.