...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "fog",
5 srcs = [
6 "adapter.go",
7 "context.go",
8 "doc.go",
9 "encoder.go",
10 "flags.go",
11 "fog.go",
12 "middleware.go",
13 "operation.go",
14 "options.go",
15 "types.go",
16 ],
17 importpath = "edge-infra.dev/pkg/lib/fog",
18 visibility = ["//visibility:public"],
19 deps = [
20 "@com_github_go_logr_logr//:logr",
21 "@com_github_google_uuid//:uuid",
22 "@org_uber_go_zap//:zap",
23 "@org_uber_go_zap//buffer",
24 "@org_uber_go_zap//zapcore",
25 ],
26)
27
28go_test(
29 name = "fog_test",
30 srcs = [
31 "examples_test.go",
32 "fog_test.go",
33 "middleware_test.go",
34 ],
35 embed = [":fog"],
36 deps = [
37 "@com_github_go_logr_logr//:logr",
38 "@com_github_stretchr_testify//assert",
39 ],
40)
View as plain text