From 698108f453d8ecb6877696b7839bccb6d2117750 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 24 Jul 2021 13:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e893f2f..0d4e8e8 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ https://github.com/XIU2/CloudflareSpeedTest -f ip.txt IP段数据文件;如路径含有空格请加上引号;支持其他 CDN IP段;(默认 ip.txt ) -o result.csv - 输出结果文件;如路径含有空格请加上引号;值为空格时不输出 [-o " "];(默认 result.csv ) + 写入结果文件;如路径含有空格请加上引号;值为空时不写入文件 [-o ""];(默认 result.csv ) -dd 禁用下载测速;禁用后测速结果会按延迟排序 (默认按下载速度排序);(默认 启用 ) -ipv6 @@ -166,8 +166,8 @@ CloudflareST.exe -f ipv6.txt -ipv6 # 指定 IPv4 数据文件,不显示结果直接退出,输出结果到文件(-p 值为 0) CloudflareST.exe -f 1.txt -p 0 -dd -# 指定 IPv4 数据文件,不输出结果到文件,直接显示结果(-p 值为 10 条,-o 值为空格) -CloudflareST.exe -f 2.txt -o " " -p 10 -dd +# 指定 IPv4 数据文件,不输出结果到文件,直接显示结果(-p 值为 10 条,-o 值为空但引号不能少) +CloudflareST.exe -f 2.txt -o "" -p 10 -dd # 指定 IPv4 数据文件 及 输出结果到文件(相对路径,即当前目录下,如含空格请加上引号) CloudflareST.exe -f 3.txt -o result.txt -dd diff --git a/main.go b/main.go index 8ba2ea8..5dd2880 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ https://github.com/XIU2/CloudflareSpeedTest -f ip.txt IP段数据文件;如路径含有空格请加上引号;支持其他 CDN IP段;(默认 ip.txt) -o result.csv - 输出结果文件;如路径含有空格请加上引号;值为空格时不输出 [-o " "];(默认 result.csv) + 写入结果文件;如路径含有空格请加上引号;值为空时不写入文件 [-o ""];(默认 result.csv) -dd 禁用下载测速;禁用后测速结果会按延迟排序 (默认按下载速度排序);(默认 启用) -ipv6 @@ -235,7 +235,7 @@ func printResult(data []CloudflareIPData) { } if versionNew != "" { - fmt.Println("\n发现新版本 [" + versionNew + "]!请前往 [https://github.com/XIU2/CloudflareSpeedTest] 更新!") + fmt.Println("\n*** 发现新版本 [" + versionNew + "]!请前往 [https://github.com/XIU2/CloudflareSpeedTest] 更新! ***") } if sysType == "windows" { // 如果是 Windows 系统,则需要按下 回车键 或 Ctrl+C 退出(避免通过双击运行时,测速完毕后直接关闭)