Sergiusz Bazanski | f448f99 | 2019-07-13 16:16:23 +0200 | [diff] [blame^] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
2 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") | ||||
3 | |||||
4 | go_embed_data( | ||||
5 | name = "static", | ||||
6 | srcs = ["index.html", "speedtest.js", "speedtest_worker.js"], | ||||
7 | package = "static", | ||||
8 | ) | ||||
9 | |||||
10 | # keep | ||||
11 | go_library( | ||||
12 | name = "static_go", | ||||
13 | srcs = [":static"], | ||||
14 | importpath = "code.hackerspace.pl/hscloud/go/svc/speedtest/static", | ||||
15 | visibility = ["//visibility:public"], | ||||
16 | ) | ||||
17 |