Het Satasiya | c34b3ea | 2022-02-06 17:28:49 -0800 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
Het Satasiya | c6df332 | 2022-02-05 14:12:30 -0800 | [diff] [blame] | 2 | |
Philipp Schrader | d3fac19 | 2022-03-02 20:35:46 -0800 | [diff] [blame] | 3 | filegroup( |
| 4 | name = "test_data", |
| 5 | srcs = [ |
| 6 | # Generated with: bazel run //scouting/scraping:scraping_demo -- --json |
| 7 | "test_data/2016_nytr.json", |
| 8 | ], |
| 9 | visibility = ["//visibility:public"], |
| 10 | ) |
| 11 | |
Het Satasiya | c6df332 | 2022-02-05 14:12:30 -0800 | [diff] [blame] | 12 | go_library( |
| 13 | name = "scraping", |
| 14 | srcs = [ |
| 15 | "scrape.go", |
| 16 | "types.go", |
| 17 | ], |
| 18 | importpath = "github.com/frc971/971-Robot-Code/scouting/scraping", |
| 19 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 20 | visibility = ["//visibility:public"], |
| 21 | ) |
Het Satasiya | c34b3ea | 2022-02-06 17:28:49 -0800 | [diff] [blame] | 22 | |
| 23 | go_binary( |
| 24 | name = "scraping_demo", |
| 25 | srcs = ["scraping_demo.go"], |
| 26 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 27 | visibility = ["//visibility:public"], |
| 28 | deps = [ |
| 29 | "scraping", |
| 30 | "@com_github_davecgh_go_spew//spew:go_default_library", |
| 31 | ], |
| 32 | ) |