]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: update documentation in doc.go for wireType
authorRob Pike <r@golang.org>
Fri, 8 Mar 2019 02:48:00 +0000 (13:48 +1100)
committerRob Pike <r@golang.org>
Fri, 8 Mar 2019 03:57:49 +0000 (03:57 +0000)
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>
src/encoding/gob/doc.go

index fa534313cc9b1a5ce528679ada1db048b316ca2b..c765707139857a64b58fabb2a802c70d2edac0fe 100644 (file)
@@ -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.