替代方案或github.com/gogo/protobuf/parser包

huangapple go评论85阅读模式
英文:

Alternative or github.com/gogo/protobuf/parser package

问题

我正在寻找一个用于解析protobuf文件的包,然后找到了这个1

github.com/gogo/protobuf/parser

然而,当我尝试运行 go get github.com/gogo/protobuf/parser 时,并没有找到这个包。有人知道这个包的其他替代方案吗?

1 https://libraries.io/go/github.com%2Fgogo%2Fprotobuf%2Fparser

英文:

I'm searching for a package to parse a protobuf file and then found this 1:

github.com/gogo/protobuf/parser

However, when I tried to do go get github.com/gogo/protobuf/parser there was no such package. Anyone knows another alternative of this package?

1 https://libraries.io/go/github.com%2Fgogo%2Fprotobuf%2Fparser

答案1

得分: 2

你正在使用非官方且过时的Libraries.io文档。

请使用官方的最新文档,并按照安装说明进行操作。

Go语言的Protocol Buffers与Gadgets:
https://github.com/gogo/protobuf

入门指南

安装说明

英文:

You are using unofficial and old documentation from Libraries.io.

Use official, up-to-date documentation, and follow the installation intructions.

Protocol Buffers for Go with Gadgets:
https://github.com/gogo/protobuf

Getting Started

Installation

答案2

得分: 0

你可以使用默认的protobuf库(https://github.com/golang/protobuf),如果你的protobuf文件有错误,在生成后会有相应的提示。

关于使用和安装的所有信息,你可以在README(https://github.com/golang/protobuf/blob/master/README.md)中阅读到。

英文:

you can use default protobuf - https://github.com/golang/protobuf if you have errors in your protobuffers it says you after generating

all you need about usage and installation you can read in readme https://github.com/golang/protobuf/blob/master/README.md

huangapple
  • 本文由 发表于 2018年12月26日 14:30:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/53928259.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定