aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2019-03-08 13:48:00 +1100
committerRob Pike <r@golang.org>2019-03-08 03:57:49 +0000
commit6c6a0a1f2a30b78f8584e4aeff48b7c1bcc6dc6b (patch)
tree6af19ce7771c5a45376658ce889b60c5ea595743 /src/encoding
parente341bae08d75611adea6566c1d01c1e3a0de57f9 (diff)
downloadgo-6c6a0a1f2a30b78f8584e4aeff48b7c1bcc6dc6b.tar.xz
encoding/gob: update documentation in doc.go for wireType
It was just out of date. Fixes #30656 Change-Id: I1fab7dd93091865a8240769eca5dd19cdbc78b81 Reviewed-on: https://go-review.googlesource.com/c/go/+/166177 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/gob/doc.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/encoding/gob/doc.go b/src/encoding/gob/doc.go
index fa534313cc..c765707139 100644
--- a/src/encoding/gob/doc.go
+++ b/src/encoding/gob/doc.go
@@ -193,10 +193,14 @@ pair (-type id, encoded-type) where encoded-type is the gob encoding of a wireTy
description, constructed from these types:
type wireType struct {
- ArrayT *ArrayType
- SliceT *SliceType
- StructT *StructType
- MapT *MapType
+ ArrayT *ArrayType
+ SliceT *SliceType
+ StructT *StructType
+ MapT *MapType
+ GobEncoderT *gobEncoderType
+ BinaryMarshalerT *gobEncoderType
+ TextMarshalerT *gobEncoderType
+
}
type arrayType struct {
CommonType
@@ -224,6 +228,9 @@ description, constructed from these types:
Key typeId
Elem typeId
}
+ type gobEncoderType struct {
+ CommonType
+ }
If there are nested type ids, the types for all inner type ids must be defined
before the top-level type id is used to describe an encoded-v.