Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritysdx committed Jul 1, 2024
1 parent 83be206 commit 5218c95
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions goecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func main() {
fmt.Println("8. Hardware-Only Test (Basic System Info + CPU + Memory + dd Disk Test + fio Disk Test)")
fmt.Println("9. IP Quality Test (IP Test with 15 Databases + Email Port Test)")
}
Loop:
for {
fmt.Print("请输入选项 / Please enter your choice: ")
fmt.Scanln(&input)
Expand All @@ -129,14 +130,14 @@ func main() {
backtraceStatus = true
nt3Status = true
speedTestStatus = true
break
break Loop
case "2":
basicStatus = true
cpuTestStatus = true
memoryTestStatus = true
diskTestStatus = true
speedTestStatus = true
break
break Loop
case "3":
basicStatus = true
cpuTestStatus = true
Expand All @@ -148,7 +149,7 @@ func main() {
backtraceStatus = true
nt3Status = true
speedTestStatus = true
break
break Loop
case "4":
basicStatus = true
cpuTestStatus = true
Expand All @@ -157,38 +158,38 @@ func main() {
backtraceStatus = true
nt3Status = true
speedTestStatus = true
break
break Loop
case "5":
basicStatus = true
cpuTestStatus = true
memoryTestStatus = true
diskTestStatus = true
securityTestStatus = true
speedTestStatus = true
break
break Loop
case "6":
speedTestStatus = true
backtraceStatus = true
nt3Status = true
break
break Loop
case "7":
securityTestStatus = true
commTestStatus = true
break
break Loop
case "8":
basicStatus = true
cpuTestStatus = true
memoryTestStatus = true
diskTestStatus = true
break
break Loop
case "9":
emailTestStatus = true
break
break Loop
case "10":
backtraceStatus = true
nt3Status = true
speedTestStatus = true
break
break Loop
default:
if language == "zh" {
fmt.Println("无效的选项")
Expand Down

0 comments on commit 5218c95

Please sign in to comment.