优化 文本显示

This commit is contained in:
xiu2 2021-07-24 13:45:11 +08:00
parent 2963b61910
commit 698108f453
2 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ https://github.com/XIU2/CloudflareSpeedTest
-f ip.txt -f ip.txt
IP段数据文件如路径含有空格请加上引号支持其他 CDN IP段(默认 ip.txt ) IP段数据文件如路径含有空格请加上引号支持其他 CDN IP段(默认 ip.txt )
-o result.csv -o result.csv
输出结果文件;如路径含有空格请加上引号;值为空格时不输出 [-o " "](默认 result.csv ) 写入结果文件;如路径含有空格请加上引号;值为空时不写入文件 [-o ""](默认 result.csv )
-dd -dd
禁用下载测速;禁用后测速结果会按延迟排序 (默认按下载速度排序)(默认 启用 ) 禁用下载测速;禁用后测速结果会按延迟排序 (默认按下载速度排序)(默认 启用 )
-ipv6 -ipv6
@ -166,8 +166,8 @@ CloudflareST.exe -f ipv6.txt -ipv6
# 指定 IPv4 数据文件,不显示结果直接退出,输出结果到文件(-p 值为 0 # 指定 IPv4 数据文件,不显示结果直接退出,输出结果到文件(-p 值为 0
CloudflareST.exe -f 1.txt -p 0 -dd CloudflareST.exe -f 1.txt -p 0 -dd
# 指定 IPv4 数据文件,不输出结果到文件,直接显示结果(-p 值为 10 条,-o 值为空 # 指定 IPv4 数据文件,不输出结果到文件,直接显示结果(-p 值为 10 条,-o 值为空但引号不能少
CloudflareST.exe -f 2.txt -o " " -p 10 -dd CloudflareST.exe -f 2.txt -o "" -p 10 -dd
# 指定 IPv4 数据文件 及 输出结果到文件(相对路径,即当前目录下,如含空格请加上引号) # 指定 IPv4 数据文件 及 输出结果到文件(相对路径,即当前目录下,如含空格请加上引号)
CloudflareST.exe -f 3.txt -o result.txt -dd CloudflareST.exe -f 3.txt -o result.txt -dd

View File

@ -49,7 +49,7 @@ https://github.com/XIU2/CloudflareSpeedTest
-f ip.txt -f ip.txt
IP段数据文件如路径含有空格请加上引号支持其他 CDN IP段(默认 ip.txt) IP段数据文件如路径含有空格请加上引号支持其他 CDN IP段(默认 ip.txt)
-o result.csv -o result.csv
输出结果文件如路径含有空格请加上引号值为空格时不输出 [-o " "](默认 result.csv) 写入结果文件如路径含有空格请加上引号值为空时不写入文件 [-o ""](默认 result.csv)
-dd -dd
禁用下载测速禁用后测速结果会按延迟排序 (默认按下载速度排序)(默认 启用) 禁用下载测速禁用后测速结果会按延迟排序 (默认按下载速度排序)(默认 启用)
-ipv6 -ipv6
@ -235,7 +235,7 @@ func printResult(data []CloudflareIPData) {
} }
if versionNew != "" { 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 退出(避免通过双击运行时,测速完毕后直接关闭) if sysType == "windows" { // 如果是 Windows 系统,则需要按下 回车键 或 Ctrl+C 退出(避免通过双击运行时,测速完毕后直接关闭)