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

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "lib",
     5      srcs = [
     6          "asm.h",
     7          "asm.s",
     8          "doc.go",
     9          "lib.go",
    10      ],
    11      _gazelle_imports = [
    12          "archive/tar",
    13          "bufio",
    14          "example.com/repo/lib/internal/deep",
    15          "lib.invalid/does/not/exist",
    16      ],
    17      importpath = "example.com/repo/lib",
    18      visibility = ["//visibility:public"],
    19  )
    20  
    21  go_test(
    22      name = "lib_test",
    23      srcs = [
    24          "lib_external_test.go",
    25          "lib_test.go",
    26      ],
    27      _gazelle_imports = [
    28          "example.com/repo/lib",
    29          "testing",
    30      ],
    31      embed = [":lib"],
    32  )