load("@io_bazel_rules_go//go:def.bzl", "go_library") | |
load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") | |
go_embed_data( | |
name = "templates_data", | |
srcs = glob(["*.html"]), | |
package = "templates", | |
flatten = True, | |
) | |
go_library( | |
name = "go_default_library", | |
srcs = [ | |
":templates_data", # keep | |
], | |
visibility = [ | |
"//hswaw/oodviewer:__pkg__", | |
], | |
importpath = "code.hackerspace.pl/hscloud/hswaw/oodviewer/templates", | |
) |