blob: 0cf22f38c8b4d7c8be1e30264c0d40602d8bbabe [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "static",
srcs = ["static.go"],
importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/static",
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:public"],
deps = ["//scouting/webserver/server"],
)
go_test(
name = "static_test",
srcs = ["static_test.go"],
data = [
"test_pages/index.html",
"test_pages/page.txt",
"test_pages/root.txt",
],
embed = [":static"],
target_compatible_with = ["@platforms//cpu:x86_64"],
deps = ["//scouting/webserver/server"],
)