增加tdx.FastHosts,用于测试排序更快的服务器地址

This commit is contained in:
injoyai
2025-05-29 16:35:49 +08:00
parent bc45a72d8d
commit 6d849a8756
2 changed files with 49 additions and 0 deletions

14
example/FastHosts/main.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
)
func main() {
ls := tdx.FastHosts(tdx.Hosts...)
for _, v := range ls {
logs.Debug(v)
}
logs.Debug("总数量:", len(ls))
}