]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/binary: document its goals better
authorRob Pike <r@golang.org>
Fri, 9 Aug 2013 07:08:02 +0000 (17:08 +1000)
committerRob Pike <r@golang.org>
Fri, 9 Aug 2013 07:08:02 +0000 (17:08 +1000)
It's a modest package with modest goals and limitations.
Make that clear.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12694043

src/pkg/encoding/binary/binary.go

index edbac197d6440fd5b622ce3a6b641ccd448eb1d1..87bc3947ed9d97fbe9ff106c7f37bf242ae9dea9 100644 (file)
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package binary implements translation between numbers and byte sequences
-// and encoding and decoding of varints.
+// Package binary implements simple translation between numbers and byte
+// sequences and encoding and decoding of varints.
 //
 // Numbers are translated by reading and writing fixed-size values.
 // A fixed-size value is either a fixed-size arithmetic
 // Varints are a method of encoding integers using one or more bytes;
 // numbers with smaller absolute value take a smaller number of bytes.
 // For a specification, see http://code.google.com/apis/protocolbuffers/docs/encoding.html.
+//
+// This package favors simplicity over efficiency. Clients that require
+// high-performance serialization, especially for large data structures,
+// should look at more advanced solutions such as the encoding/gob
+// package or protocol buffers.
 package binary
 
 import (