| load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") |
| |
| go_library( |
| name = "go_default_library", |
| srcs = ["main.go"], |
| importpath = "code.hackerspace.pl/hscloud/hswaw/cebulacamp/landing/backend", |
| visibility = ["//visibility:private"], |
| deps = [ |
| "@com_github_golang_glog//:go_default_library", |
| "//hswaw/cebulacamp/landing:static_go", # keep |
| ], |
| ) |
| |
| go_binary( |
| name = "backend", |
| embed = [":go_default_library"], |
| visibility = ["//visibility:public"], |
| ) |
| |
| go_test( |
| name = "go_default_test", |
| srcs = ["main_test.go"], |
| embed = [":go_default_library"], |
| ) |