2021-12-14 10:13:17 +00:00
|
|
|
package trackers
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "embed"
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
//go:embed trackerslist/trackers_best.txt
|
|
|
|
var best string
|
2022-02-04 05:42:55 +00:00
|
|
|
var Best = strings.Split(best, "\n\n")
|
2021-12-14 10:13:17 +00:00
|
|
|
|
|
|
|
//go:embed trackerslist/trackers_all_https.txt
|
|
|
|
var https string
|
2022-02-04 05:42:55 +00:00
|
|
|
var Https = strings.Split(https, "\n\n")
|
|
|
|
|
|
|
|
//go:embed trackerslist/trackers_all_http.txt
|
|
|
|
var http string
|
|
|
|
var Http = strings.Split(http, "\n\n")
|
2021-12-14 10:13:17 +00:00
|
|
|
|
|
|
|
//go:embed trackerslist/trackers_all_udp.txt
|
|
|
|
var udp string
|
2022-02-04 05:42:55 +00:00
|
|
|
var Udp = strings.Split(udp, "\n\n")
|
2021-12-14 10:13:17 +00:00
|
|
|
|
|
|
|
//go:embed trackerslist/trackers_all_ws.txt
|
|
|
|
var ws string
|
2022-02-04 05:42:55 +00:00
|
|
|
var Ws = strings.Split(ws, "\n\n")
|
2021-12-14 10:13:17 +00:00
|
|
|
|
2022-02-04 05:42:55 +00:00
|
|
|
func First(n int, in []string) (res []string) {
|
|
|
|
if n <= len(in) {
|
|
|
|
return in[:n]
|
2021-12-14 10:13:17 +00:00
|
|
|
}
|
2022-02-04 05:42:55 +00:00
|
|
|
return in
|
2021-12-14 10:13:17 +00:00
|
|
|
}
|