github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/allcgolib/BUILD.want (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "allcgolib", 5 srcs = [ 6 "foo.c", 7 "foo.go", 8 ], 9 _gazelle_imports = [ 10 "example.com/repo/lib", 11 "fmt", 12 ], 13 cgo = True, 14 importpath = "example.com/repo/allcgolib", 15 visibility = ["//visibility:public"], 16 ) 17 18 go_test( 19 name = "allcgolib_test", 20 srcs = ["foo_test.go"], 21 _gazelle_imports = ["testing"], 22 embed = [":allcgolib"], 23 )