...
1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3package(default_visibility = ["//visibility:private"])
4
5go_library(
6 name = "example-grpc-server_lib",
7 srcs = ["main.go"],
8 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/cmd/example-grpc-server",
9 deps = [
10 "//examples/internal/server",
11 "@org_golang_google_grpc//grpclog",
12 ],
13)
14
15go_binary(
16 name = "example-server",
17 embed = [":example-grpc-server_lib"],
18 visibility = ["//visibility:public"],
19)
View as plain text