PrintUsage 打印使用说明
()
| 18 | |
| 19 | // PrintUsage 打印使用说明 |
| 20 | func PrintUsage() { |
| 21 | fmt.Printf("Reality协议目标网站检测器 %s\n\n", version.GetVersion()) |
| 22 | fmt.Println("用法:") |
| 23 | fmt.Println(" reality-checker check <domain> 检测单个域名") |
| 24 | fmt.Println(" reality-checker batch <domain1> <domain2> <domain3> ... 批量检测域名") |
| 25 | fmt.Println(" reality-checker csv <csv_file> 从CSV文件批量检测域名") |
| 26 | fmt.Println("") |
| 27 | fmt.Println("示例:") |
| 28 | fmt.Println(" reality-checker check apple.com") |
| 29 | fmt.Println(" reality-checker batch apple.com tesla.com microsoft.com") |
| 30 | fmt.Println(" reality-checker csv file.csv") |
| 31 | } |
| 32 | |
| 33 | // PrintTimestampedMessage 打印带时间戳的消息 |
| 34 | func PrintTimestampedMessage(format string, args ...interface{}) { |