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 | "doc.go", |
| 9 | "parse_req.go", |
| 10 | ], |
| 11 | importpath = "github.com/grpc-ecosystem/grpc-gateway/codegenerator", |
| 12 | deps = [ |
| 13 | "@com_github_golang_protobuf//proto:go_default_library", |
| 14 | "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | go_test( |
| 19 | name = "go_default_test", |
| 20 | srcs = ["parse_req_test.go"], |
| 21 | embed = [":go_default_library"], |
| 22 | deps = [ |
| 23 | "@com_github_golang_protobuf//proto:go_default_library", |
| 24 | "@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto", |
| 25 | ], |
| 26 | ) |