1
0
mirror of https://github.com/golang/go synced 2024-11-15 02:40:32 -07:00

[release-branch.go1.2] encoding/gob: expose encode/decode example

««« CL 26220045 / d76ade89413f
encoding/gob: expose encode/decode example

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/26220045
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/25380044
This commit is contained in:
Andrew Gerrand 2013-11-18 12:38:31 +11:00
parent a5940dddba
commit 3409e2a2e6

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.