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:
parent
833dc85c0f
commit
b6c7cc3241
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user