Skip to content

Instantly share code, notes, and snippets.

@serverhorror
Created September 1, 2019 21:06
Show Gist options
  • Save serverhorror/2f1c328d6001717155517a3d736bc39f to your computer and use it in GitHub Desktop.
Save serverhorror/2f1c328d6001717155517a3d736bc39f to your computer and use it in GitHub Desktop.
// +build linux
package pb
//go:generate protoc -I . -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=plugins=grpc:. stool.proto
//go:generate protoc -I . -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:. stool.proto
//go:generate protoc -I . -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --swagger_out=logtostderr=true:. stool.proto
// +build windows
package pb
//go:generate protoc -I . -I $GOPATH\src -I $GOPATH\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --go_out=plugins=grpc:. stool.proto
//go:generate protoc -I . -I $GOPATH\src -I $GOPATH\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --grpc-gateway_out=logtostderr=true:. stool.proto
//go:generate protoc -I . -I $GOPATH\src -I $GOPATH\src\github.com\grpc-ecosystem\grpc-gateway\third_party\googleapis --swagger_out=logtostderr=true:. stool.proto
import (
_ "google.golang.org/grpc"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment