Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | go_library( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 4 | name = "config", |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 5 | srcs = ["config.go"], |
| 6 | importpath = "code.hackerspace.pl/hscloud/devtools/hackdoc/config", |
| 7 | visibility = ["//visibility:public"], |
| 8 | deps = [ |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 9 | "//devtools/hackdoc/source", |
| 10 | "@com_github_burntsushi_toml//:toml", |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 11 | ], |
| 12 | ) |
| 13 | |
| 14 | go_test( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 15 | name = "config_test", |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 16 | srcs = ["config_test.go"], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 17 | embed = [":config"], |
| 18 | deps = ["@com_github_go_test_deep//:deep"], |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 19 | ) |