| load("//:visibility.bzl", "PUBLIC_VISIBILITY") |
| load("//tools:build_rules/shims.bzl", "go_library", "go_test") |
| |
| package(default_visibility = ["//kythe:default_visibility"]) |
| |
| go_library( |
| name = "govname", |
| srcs = [ |
| "govname.go", |
| "types.go", |
| ], |
| importpath = "kythe.io/kythe/go/extractors/govname", |
| visibility = [PUBLIC_VISIBILITY], |
| deps = [ |
| "//kythe/go/util/log", |
| "//kythe/go/util/vnameutil", |
| "//kythe/proto:storage_go_proto", |
| "@org_golang_x_tools_go_vcs//:vcs", |
| ], |
| ) |
| |
| go_test( |
| name = "govname_test", |
| size = "small", |
| srcs = ["govname_test.go"], |
| library = ":govname", |
| tags = ["local"], |
| visibility = ["//visibility:private"], |
| deps = [ |
| "//kythe/go/util/kytheuri", |
| "//kythe/go/util/vnameutil", |
| "//kythe/proto:storage_go_proto", |
| "@org_golang_google_protobuf//proto", |
| "@org_golang_x_tools_go_vcs//:vcs", |
| ], |
| ) |