proto.go 841 B

12345678910111213141516171819
  1. package core
  2. //go:generate go install -v google.golang.org/protobuf/cmd/protoc-gen-go
  3. //go:generate go install -v google.golang.org/grpc/cmd/protoc-gen-go-grpc
  4. //go:generate go install -v github.com/gogo/protobuf/protoc-gen-gofast
  5. //go:generate go run ./infra/vprotogen/main.go
  6. import "path/filepath"
  7. // ProtoFilesUsingProtocGenGoFast is the map of Proto files
  8. // that use `protoc-gen-gofast` to generate pb.go files
  9. var ProtoFilesUsingProtocGenGoFast = map[string]bool{"proxy/vless/encoding/addons.proto": true}
  10. // ProtocMap is the map of paths to `protoc` binary excutable files of specific platform
  11. var ProtocMap = map[string]string{
  12. "windows": filepath.Join(".dev", "protoc", "windows", "protoc.exe"),
  13. "darwin": filepath.Join(".dev", "protoc", "macos", "protoc"),
  14. "linux": filepath.Join(".dev", "protoc", "linux", "protoc"),
  15. }