1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 10:45:22 +00:00

Merge pull request #123 from Loyalsoldier/refine-go-generate

Proto & Mock: refine go generate command
This commit is contained in:
Kslr 2020-08-25 17:51:14 +08:00 committed by GitHub
commit 243a8262fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
package core
//go:generate go get -u github.com/golang/mock/gomock
//go:generate go install github.com/golang/mock/gomock
//go:generate go install github.com/golang/mock/mockgen
//go:generate mockgen -package mocks -destination testing/mocks/io.go -mock_names Reader=Reader,Writer=Writer io Reader,Writer

View File

@ -1,8 +1,8 @@
package core
//go:generate go get -u "google.golang.org/protobuf/proto"
//go:generate go get -u "google.golang.org/protobuf/cmd/protoc-gen-go"
//go:generate go get -u "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
//go:generate go get -u "github.com/gogo/protobuf/protoc-gen-gofast"
//go:generate go install "google.golang.org/protobuf/proto"
//go:generate go install "google.golang.org/protobuf/cmd/protoc-gen-go"
//go:generate go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
//go:generate go install "github.com/gogo/protobuf/protoc-gen-gofast"
//go:generate go install "v2ray.com/core/infra/vprotogen"
//go:generate vprotogen -repo v2ray.com/core