mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:11:49 +08:00
@@ -193,8 +193,6 @@ func main() {
|
||||
下面的代码片段展示了如何通过在初始化语句中获取函数 `process()` 的返回值,并在条件语句中作为判定条件来决定是否执行 if 结构中的代码:
|
||||
|
||||
```go
|
||||
if value := process(data); value > max {
|
||||
...
|
||||
if value := process(data); value > max {
|
||||
...
|
||||
}
|
||||
|
Reference in New Issue
Block a user