зеркало из https://github.com/golang/protobuf.git
Update URLs and paths to new location of the C++ protobuf code.
This commit is contained in:
Родитель
d018e4cfcb
Коммит
380d2d0c0f
10
README
10
README
|
@ -6,16 +6,16 @@ This package and the code it generates requires at least Go 1.2.
|
|||
|
||||
This software implements Go bindings for protocol buffers. For
|
||||
information about protocol buffers themselves, see
|
||||
http://code.google.com/apis/protocolbuffers/
|
||||
https://developers.google.com/protocol-buffers/
|
||||
To use this software, you must first install the standard C++
|
||||
implementation of protocol buffers from
|
||||
http://code.google.com/p/protobuf/
|
||||
https://developers.google.com/protocol-buffers/
|
||||
And of course you must also install the Go compiler and tools from
|
||||
http://code.google.com/p/go/
|
||||
https://golang.org/
|
||||
See
|
||||
http://golang.org/doc/install.html
|
||||
https://golang.org/doc/install
|
||||
for details or, if you are using gccgo, follow the instructions at
|
||||
http://golang.org/doc/gccgo_install.html
|
||||
https://golang.org/doc/install/gccgo
|
||||
|
||||
This software has two parts: a 'protocol compiler plugin' that
|
||||
generates Go source files that, once compiled, can access and manage
|
||||
|
|
|
@ -950,7 +950,7 @@ func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error {
|
|||
var state errorState
|
||||
// Encode fields in tag order so that decoders may use optimizations
|
||||
// that depend on the ordering.
|
||||
// http://code.google.com/apis/protocolbuffers/docs/encoding.html#order
|
||||
// https://developers.google.com/protocol-buffers/docs/encoding#order
|
||||
for _, i := range prop.order {
|
||||
p := prop.Prop[i]
|
||||
if p.enc != nil {
|
||||
|
|
|
@ -29,11 +29,11 @@
|
|||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Not stored here, but descriptor.proto is in http://code.google.com/p/protobuf
|
||||
# at protobuf-2.5.0/src/google/protobuf/descriptor.proto
|
||||
# Not stored here, but descriptor.proto is in https://github.com/google/protobuf/
|
||||
# at src/google/protobuf/descriptor.proto
|
||||
regenerate:
|
||||
echo WARNING! THIS RULE IS PROBABLY NOT RIGHT FOR YOUR INSTALLATION
|
||||
cd $(HOME)/src/protobuf-2.5.0/src && \
|
||||
cd $(HOME)/src/protobuf/src && \
|
||||
protoc --go_out=. ./google/protobuf/descriptor.proto && \
|
||||
sed -i 's,^package google_protobuf,package descriptor,' google/protobuf/descriptor.pb.go && \
|
||||
cp ./google/protobuf/descriptor.pb.go $(GOPATH)/src/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
the library.
|
||||
|
||||
See the README and documentation for protocol buffers to learn more:
|
||||
http://code.google.com/p/protobuf/
|
||||
https://developers.google.com/protocol-buffers/
|
||||
|
||||
*/
|
||||
package documentation
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Not stored here, but plugin.proto is in http://code.google.com/p/protobuf
|
||||
# at protobuf-2.5.0/src/google/protobuf/compiler/plugin.proto
|
||||
# Not stored here, but plugin.proto is in https://github.com/google/protobuf/
|
||||
# at src/google/protobuf/compiler/plugin.proto
|
||||
# Also we need to fix an import.
|
||||
regenerate:
|
||||
echo WARNING! THIS RULE IS PROBABLY NOT RIGHT FOR YOUR INSTALLATION
|
||||
cd $(HOME)/src/protobuf-2.5.0/src && \
|
||||
cd $(HOME)/src/protobuf/src && \
|
||||
protoc --go_out=. ./google/protobuf/compiler/plugin.proto && \
|
||||
cat ./google/protobuf/compiler/plugin.pb.go | \
|
||||
sed '/^import/s;google/protobuf/descriptor.pb;github.com/golang/protobuf/protoc-gen-go/descriptor;' > $(GOPATH)/src/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
|
||||
|
|
Загрузка…
Ссылка в новой задаче