mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
@@ -83,8 +83,8 @@ func main() {
|
|||||||
fmt.Println("What to send to the server? Type Q to quit.")
|
fmt.Println("What to send to the server? Type Q to quit.")
|
||||||
input, _ := inputReader.ReadString('\n')
|
input, _ := inputReader.ReadString('\n')
|
||||||
trimmedInput := strings.Trim(input, "\r\n")
|
trimmedInput := strings.Trim(input, "\r\n")
|
||||||
// fmt.Printf("input:--s%--", input)
|
// fmt.Printf("input:--%s--", input)
|
||||||
// fmt.Printf("trimmedInput:--s%--", trimmedInput)
|
// fmt.Printf("trimmedInput:--%s--", trimmedInput)
|
||||||
if trimmedInput == "Q" {
|
if trimmedInput == "Q" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user