github.com/afking/bazel-gazelle@v0.0.0-20180301150245-c02bc0f529e8/internal/rules/testdata/repo/bin_with_tests/BUILD.want (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "go_default_library",
     5      srcs = ["main.go"],
     6      _gazelle_imports = [
     7          "example.com/repo/lib",
     8          "fmt",
     9      ],
    10      importpath = "example.com/repo/bin_with_tests",
    11      visibility = ["//visibility:private"],
    12  )
    13  
    14  go_binary(
    15      name = "bin_with_tests",
    16      embed = [":go_default_library"],
    17      visibility = ["//visibility:public"],
    18  )
    19  
    20  go_test(
    21      name = "go_default_test",
    22      srcs = ["bin_test.go"],
    23      _gazelle_imports = ["testing"],
    24      embed = [":go_default_library"],
    25  )