mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:21:38 +08:00
Update 12.1.md
This commit is contained in:
@@ -81,7 +81,6 @@ input, err := inputReader.ReadString('\n')
|
|||||||
第二个例子从键盘读取输入,使用了 `switch` 语句:
|
第二个例子从键盘读取输入,使用了 `switch` 语句:
|
||||||
|
|
||||||
**Listing 12.3—switch_input.go:**
|
**Listing 12.3—switch_input.go:**
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
import (
|
import (
|
||||||
@@ -123,7 +122,7 @@ func main() {
|
|||||||
default: fmt.Printf("You are not welcome here! Goodbye!\n")
|
default: fmt.Printf("You are not welcome here! Goodbye!\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
注意:Unix和Windows的行结束符是不同的!
|
注意:Unix和Windows的行结束符是不同的!
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user