github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/bin/BUILD.want (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2  
     3  go_library(
     4      name = "bin_lib",
     5      srcs = ["main.go"],
     6      _gazelle_imports = [
     7          "example.com/repo/lib",
     8          "fmt",
     9      ],
    10      importpath = "example.com/repo/bin",
    11      visibility = ["//visibility:private"],
    12  )
    13  
    14  go_binary(
    15      name = "bin",
    16      _gazelle_imports = [],
    17      embed = [":bin_lib"],
    18      visibility = ["//visibility:public"],
    19  )