Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | package(default_visibility = ["//:generators"]) |
| 4 | |
| 5 | go_library( |
| 6 | name = "go_default_library", |
| 7 | srcs = [ |
| 8 | "compile.go", |
| 9 | "parse.go", |
| 10 | "types.go", |
| 11 | ], |
| 12 | importpath = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule", |
| 13 | deps = [ |
| 14 | "//utilities:go_default_library", |
| 15 | "@com_github_golang_glog//:go_default_library", |
| 16 | ], |
| 17 | ) |
| 18 | |
| 19 | go_test( |
| 20 | name = "go_default_test", |
| 21 | size = "small", |
| 22 | srcs = [ |
| 23 | "compile_test.go", |
| 24 | "parse_test.go", |
| 25 | "types_test.go", |
| 26 | ], |
| 27 | embed = [":go_default_library"], |
| 28 | deps = [ |
| 29 | "//utilities:go_default_library", |
| 30 | "@com_github_golang_glog//:go_default_library", |
| 31 | ], |
| 32 | ) |