diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..bbfd2cb5680 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +.idea \ No newline at end of file diff --git a/embed.go b/embed.go new file mode 100644 index 00000000000..d9ec1502425 --- /dev/null +++ b/embed.go @@ -0,0 +1,20 @@ +package trackerslist + +import ( + _ "embed" +) + +//go:embed trackers_best.txt +var Best string + +//go:embed trackers_all_https.txt +var Https string + +//go:embed trackers_all_http.txt +var Http string + +//go:embed trackers_all_udp.txt +var Udp string + +//go:embed trackers_all_ws.txt +var Ws string diff --git a/go.mod b/go.mod new file mode 100644 index 00000000000..b0048341f99 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/ledgerwatch/trackerslist + +go 1.18