21 lines
492 B
Python
21 lines
492 B
Python
load("@rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "config",
|
|
srcs = ["config.go"],
|
|
importpath = "slackerbot/internal/config",
|
|
visibility = ["//slackerbot:__subpackages__"],
|
|
deps = [
|
|
"//slackerbot/internal/model",
|
|
"//slackerbot/internal/units",
|
|
"@com_github_burntsushi_toml//:toml",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "config_test",
|
|
srcs = ["config_test.go"],
|
|
data = ["//:config.example.toml"],
|
|
embed = [":config"],
|
|
)
|