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