load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") | |
go_library( | |
name = "backend_lib", | |
srcs = ["main.go"], | |
importpath = "code.hackerspace.pl/hscloud/bgpwtf/speedtest/backend", | |
visibility = ["//visibility:private"], | |
deps = [ | |
"//bgpwtf/speedtest:static_go", # keep | |
"@com_github_golang_glog//:glog", | |
], | |
) | |
go_binary( | |
name = "backend", | |
embed = [":backend_lib"], | |
visibility = ["//visibility:public"], | |
) | |
go_test( | |
name = "backend_test", | |
srcs = ["main_test.go"], | |
embed = [":backend_lib"], | |
) |