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 = "assets", | |
srcs = glob(["*.js"]), | |
package = "assets", | |
flatten = True, | |
) | |
# keep | |
go_library( | |
name = "go_default_library", | |
srcs = [":assets"], | |
importpath = "code.hackerspace.pl/hscloud/dc/topo/assets", | |
visibility = ["//dc/topo:__pkg__"], | |
) |