]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: document compatibility
authorRob Pike <r@golang.org>
Thu, 21 Apr 2016 19:43:22 +0000 (12:43 -0700)
committerRob Pike <r@golang.org>
Fri, 22 Apr 2016 00:14:27 +0000 (00:14 +0000)
Fixes #13808.

Change-Id: Ifbd5644da995a812438a405485c9e08b4503a313
Reviewed-on: https://go-review.googlesource.com/22352
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/encoding/gob/doc.go

index cf878f450295f4d3ff8c62ed869ee32adbc576bb..6f86d84891b26591831c0dfcc1778f87d7c7f674 100644 (file)
@@ -254,6 +254,12 @@ In summary, a gob stream looks like
 where * signifies zero or more repetitions and the type id of a value must
 be predefined or be defined before the value in the stream.
 
+Compatibility: Any future changes to the package will endeavor to maintain
+compatibility with streams encoded using previous versions.  That is, any released
+version of this package should be able to decode data written with any previously
+released version, subject to issues such as security fixes. See the Go compatibility
+document for background: https://golang.org/doc/go1compat
+
 See "Gobs of data" for a design discussion of the gob wire format:
 https://blog.golang.org/gobs-of-data
 */