2023-05-04 21:00:30 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "config",
|
|
|
|
srcs = [
|
|
|
|
"config.go",
|
2023-05-06 20:18:22 +00:00
|
|
|
"path.go",
|
2023-05-04 21:00:30 +00:00
|
|
|
"path_linux.go",
|
|
|
|
],
|
|
|
|
importpath = "git.wntrmute.dev/kyle/goutils/config",
|
|
|
|
visibility = ["//visibility:public"],
|
2023-05-04 22:11:15 +00:00
|
|
|
deps = ["//config/iniconf"],
|
2023-05-04 21:00:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "config_test",
|
2023-05-04 22:11:15 +00:00
|
|
|
size = "small",
|
2023-05-04 21:00:30 +00:00
|
|
|
srcs = [
|
|
|
|
"config_test.go",
|
|
|
|
"path_test.go",
|
|
|
|
],
|
|
|
|
data = glob(["testdata/**"]),
|
|
|
|
embed = [":config"],
|
|
|
|
)
|