You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
434 B
21 lines
434 B
load("@gazelle//:def.bzl", "gazelle")
|
|
load("@rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
# gazelle:prefix hello
|
|
# gazelle:proto disable_global
|
|
gazelle(name = "gazelle")
|
|
|
|
go_library(
|
|
name = "hello_lib",
|
|
srcs = ["main.go"],
|
|
importpath = "hello",
|
|
visibility = ["//visibility:private"],
|
|
deps = ["//lib"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "hello",
|
|
embed = [":hello_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|