blob: 49f6d33c3498b3ed0f966287ca2aa3d51f572b66 [file] [log] [blame]
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "config",
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02005 srcs = ["config.go"],
6 importpath = "code.hackerspace.pl/hscloud/devtools/hackdoc/config",
7 visibility = ["//visibility:public"],
8 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +00009 "//devtools/hackdoc/source",
10 "@com_github_burntsushi_toml//:toml",
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020011 ],
12)
13
14go_test(
Serge Bazanski97b5cd72023-07-28 17:14:50 +000015 name = "config_test",
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020016 srcs = ["config_test.go"],
Serge Bazanski97b5cd72023-07-28 17:14:50 +000017 embed = [":config"],
18 deps = ["@com_github_go_test_deep//:deep"],
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020019)