mirror of https://github.com/v2ray/v2ray-core
Merge pull request #123 from Loyalsoldier/refine-go-generate
Proto & Mock: refine go generate commandpull/2714/head
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