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", |
Philipp Schrader | 30005e4 | 2022-03-06 13:53:58 -0800 | [diff] [blame^] | 8 | "test_data/2020_fake.json", |
Philipp Schrader | d3fac19 | 2022-03-02 20:35:46 -0800 | [diff] [blame] | 9 | ], |
| 10 | visibility = ["//visibility:public"], |
| 11 | ) |
| 12 | |
Het Satasiya | c6df332 | 2022-02-05 14:12:30 -0800 | [diff] [blame] | 13 | go_library( |
| 14 | name = "scraping", |
| 15 | srcs = [ |
| 16 | "scrape.go", |
| 17 | "types.go", |
| 18 | ], |
| 19 | importpath = "github.com/frc971/971-Robot-Code/scouting/scraping", |
| 20 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 21 | visibility = ["//visibility:public"], |
| 22 | ) |
Het Satasiya | c34b3ea | 2022-02-06 17:28:49 -0800 | [diff] [blame] | 23 | |
| 24 | go_binary( |
| 25 | name = "scraping_demo", |
| 26 | srcs = ["scraping_demo.go"], |
| 27 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 28 | visibility = ["//visibility:public"], |
| 29 | deps = [ |
| 30 | "scraping", |
| 31 | "@com_github_davecgh_go_spew//spew:go_default_library", |
| 32 | ], |
| 33 | ) |