浏览代码

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

David Symonds 10 年之前
父节点
当前提交
6dfb160b27
共有 1 个文件被更改,包括 3 次插入1 次删除
  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.
 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
 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
 	extension field itself.  HasExtension, ClearExtension, GetExtension
 	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.
 
 Consider file test.proto, containing