11# grpc-gateway
22
3- [ ![ release] ( https://img.shields.io/github/release/grpc-ecosystem/grpc-gateway.svg?style=flat-square )] ( https://github.com/grpc-ecosystem/grpc-gateway/releases ) [ ![ CircleCI] ( https://img.shields.io/circleci/project/github/grpc-ecosystem/grpc-gateway/master .svg?style=flat-square )] ( https://circleci.com/gh/grpc-ecosystem/grpc-gateway ) [ ![ fuzzit] ( https://app.fuzzit.dev/badge?org_id=grpc-gateway )] ( https://app.fuzzit.dev/orgs/grpc-gateway/dashboard ) [ ![ coverage] ( https://img.shields.io/codecov/c/github/grpc-ecosystem/grpc-gateway/master .svg?style=flat-square )] ( https://codecov.io/gh/grpc-ecosystem/grpc-gateway ) [ ![ license] ( https://img.shields.io/github/license/grpc-ecosystem/grpc-gateway.svg?style=flat-square )] ( LICENSE.txt )
3+ [ ![ release] ( https://img.shields.io/github/release/grpc-ecosystem/grpc-gateway.svg?style=flat-square )] ( https://github.com/grpc-ecosystem/grpc-gateway/releases ) [ ![ CircleCI] ( https://img.shields.io/circleci/project/github/grpc-ecosystem/grpc-gateway/v2 .svg?style=flat-square )] ( https://circleci.com/gh/grpc-ecosystem/grpc-gateway ) [ ![ fuzzit] ( https://app.fuzzit.dev/badge?org_id=grpc-gateway )] ( https://app.fuzzit.dev/orgs/grpc-gateway/dashboard ) [ ![ coverage] ( https://img.shields.io/codecov/c/github/grpc-ecosystem/grpc-gateway/v2 .svg?style=flat-square )] ( https://codecov.io/gh/grpc-ecosystem/grpc-gateway ) [ ![ license] ( https://img.shields.io/github/license/grpc-ecosystem/grpc-gateway.svg?style=flat-square )] ( LICENSE.txt )
44
55The grpc-gateway is a plugin of the Google protocol buffers compiler
66[ protoc] ( https://github.com/protocolbuffers/protobuf ) .
@@ -48,8 +48,8 @@ to track the versions of the following executable packages:
4848package tools
4949
5050import (
51- _ " github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway"
52- _ " github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger"
51+ _ " github.com/grpc-ecosystem/grpc-gateway/v2/ protoc-gen-grpc-gateway"
52+ _ " github.com/grpc-ecosystem/grpc-gateway/v2/ protoc-gen-swagger"
5353 _ " github.com/golang/protobuf/protoc-gen-go"
5454)
5555```
@@ -58,8 +58,8 @@ Run `go mod tidy` to resolve the versions. Install by running
5858
5959``` sh
6060$ go install \
61- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \
62- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \
61+ github.com/grpc-ecosystem/grpc-gateway/v2/ protoc-gen-grpc-gateway \
62+ github.com/grpc-ecosystem/grpc-gateway/v2/ protoc-gen-swagger \
6363 github.com/golang/protobuf/protoc-gen-go
6464```
6565
@@ -172,7 +172,7 @@ annotation to your .proto file
172172 " net/http"
173173
174174 " github.com/golang/glog"
175- " github.com/grpc-ecosystem/grpc-gateway/runtime"
175+ " github.com/grpc-ecosystem/grpc-gateway/v2/ runtime"
176176 " google.golang.org/grpc"
177177
178178 gw " github.com/yourorg/yourrepo/proto/gen/go/your/service/v1/your_service" // Update
0 commit comments