mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Protocol Buffers
The Context.Protobuf(proto.Message) is the method which sends protos to the client. It accepts a proto.Message value.
Note: Iris is using the newest version of the Go protocol buffers implementation. Read more about it at The Go Blog: A new Go API for Protocol Buffers.
- Install the protoc-gen-go tool.
$ go get -u google.golang.org/protobuf/cmd/protoc-gen-go@latest
- Generate proto
$ protoc -I protos/ protos/hello.proto --go_out=.