Przeglądaj źródła

Update Go version requirements and copy oneof info from lib.go.

David Symonds 10 lat temu
rodzic
commit
6dfb160b27
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      README

+ 3 - 1
README

@@ -2,7 +2,7 @@ Go support for Protocol Buffers - Google's data interchange format
 Copyright 2010 The Go Authors.
 Copyright 2010 The Go Authors.
 https://github.com/golang/protobuf
 https://github.com/golang/protobuf
 
 
-This package and the code it generates requires at least Go 1.2.
+This package and the code it generates requires at least Go 1.4.
 
 
 This software implements Go bindings for protocol buffers.  For
 This software implements Go bindings for protocol buffers.  For
 information about protocol buffers themselves, see
 information about protocol buffers themselves, see
@@ -95,6 +95,8 @@ for a protocol buffer variable v:
 	that contain it (if any) followed by the CamelCased name of the
 	that contain it (if any) followed by the CamelCased name of the
 	extension field itself.  HasExtension, ClearExtension, GetExtension
 	extension field itself.  HasExtension, ClearExtension, GetExtension
 	and SetExtension are functions for manipulating extensions.
 	and SetExtension are functions for manipulating extensions.
+  - Oneof field sets are given a single field in their message,
+	with distinguished wrapper types for each possible field value.
   - Marshal and Unmarshal are functions to encode and decode the wire format.
   - Marshal and Unmarshal are functions to encode and decode the wire format.
 
 
 Consider file test.proto, containing
 Consider file test.proto, containing