mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 23:06:30 -05:00
Merge pull request #123 from Loyalsoldier/refine-go-generate
Proto & Mock: refine go generate command
This commit is contained in:
commit
243a8262fc
2
mocks.go
2
mocks.go
@ -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
|
||||
|
8
proto.go
8
proto.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user