| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| |
| go_library( |
| name = "calendar", |
| srcs = [ |
| "event.go", |
| "load.go", |
| "time.go", |
| ], |
| importpath = "code.hackerspace.pl/hscloud/hswaw/site/calendar", |
| visibility = ["//hswaw/site:__subpackages__"], |
| deps = [ |
| "@com_github_arran4_golang_ical//:golang-ical", |
| "@com_github_golang_glog//:glog", |
| "@com_github_teambition_rrule_go//:rrule-go", |
| ], |
| ) |
| |
| go_test( |
| name = "calendar_test", |
| srcs = [ |
| "event_test.go", |
| "load_test.go", |
| ], |
| data = [ |
| ":test.ical", |
| ], |
| embed = [":calendar"], |
| deps = ["@com_github_google_go_cmp//cmp"], |
| ) |