mirror of
https://github.com/golang/go
synced 2024-11-15 02:30:31 -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:
parent
a5940dddba
commit
3409e2a2e6
@ -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