Skip to content

Commit

Permalink
更新0529
Browse files Browse the repository at this point in the history
  • Loading branch information
ffhelicopter committed May 29, 2019
1 parent 2864df8 commit e97edff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions SUMMARY.md
Expand Up @@ -56,18 +56,18 @@

* ### [第十三章 字典(Map)](content/42_13_map.md)
* [13.1 字典(Map)](content/42_13_map.md#131-字典map)
* [13.2 "range"语句中更新引用元素的值](content/42_13_map.md#132-range语句中的值)
* [13.2 range语句中更新引用元素的值](content/42_13_map.md#132-range语句中的值)

* ### [第十四章 流程控制](content/42_14_flow.md)
* [14.1 Switch 语句](content/42_14_flow.md#141-switch-语句)
* [14.2 Select控制](content/42_14_flow.md#142-select控制)
* [14.3 For循环](content/42_14_flow.md#143-for循环)
* [14.1 switch 语句](content/42_14_flow.md#141-switch-语句)
* [14.2 select控制](content/42_14_flow.md#142-select控制)
* [14.3 for循环](content/42_14_flow.md#143-for循环)
* [14.4 for-range 结构](content/42_14_flow.md#144-for-range-结构)

* ### [第十五章 错误处理](content/42_15_errors.md)
* [15.1 错误类型](content/42_15_errors.md#151-错误类型)
* [15.2 Panic](content/42_15_errors.md#152-panic)
* [15.3 Recover panic 中恢复](content/42_15_errors.md#153-recover从-panic-中恢复)
* [15.2 panic](content/42_15_errors.md#152-panic)
* [15.3 recover panic 中恢复](content/42_15_errors.md#153-recover从-panic-中恢复)
* [15.4 有关于defer](content/42_15_errors.md#154-有关于defer)

* ### [第十六章 函数](content/42_16_function.md)
Expand Down Expand Up @@ -145,7 +145,7 @@
* [29.2 自定义sort.Interface排序](content/42_29_sort.md#292-自定义sortinterface排序)
* [29.3 sort.Slice](content/42_29_sort.md#293-sortslice)

* ### [第三十章 OS包](content/42_30_os.md)
* ### [第三十章 os包](content/42_30_os.md)
* [30.1 启动外部命令和程序](content/42_30_os.md#301-启动外部命令和程序)
* [30.2 os/signal 信号处理](content/42_30_os.md#302-ossignal-信号处理)

Expand Down Expand Up @@ -192,7 +192,7 @@
* [38.2 JSON数据格式](content/42_38_json.md#382-json数据格式)
* [38.3 Protocol Buffer数据格式](content/42_38_json.md#383-protocol-buffer数据格式)

* ### [第三十九章 Mysql数据库](content/42_39_mysql.md)
* ### [第三十九章 MySQL数据库](content/42_39_mysql.md)
* [39.1 database/sql包](content/42_39_mysql.md#391-databasesql包)
* [39.2 MySQL数据库操作](content/42_39_mysql.md#392-mysql数据库操作)

Expand Down
6 changes: 3 additions & 3 deletions content/42_14_flow.md
Expand Up @@ -2,7 +2,7 @@

作者李骁

## 14.1 Switch 语句
## 14.1 switch 语句

```Go
switch var1 {
Expand Down Expand Up @@ -93,7 +93,7 @@ The integer was == 1
The integer was == 2
```

## 14.2 Select控制
## 14.2 select控制

select是Go语言中的一个控制结构类似于switch语句主要用于处理异步通道操作所有情况都会涉及通信操作因此select会监听分支语句中通道的读写操作当分支中的通道读写操作为非阻塞状态即能读写将会触发相应的动作select语句会选择一组可以发送或接收操作中的一个分支继续执行select没有条件表达式一直在等待分支进入可运行状态

Expand Down Expand Up @@ -137,7 +137,7 @@ func main() {
// 输出:request time out
```

## 14.3 For循环
## 14.3 for循环

最简单的基于计数器的迭代基本形式为

Expand Down

0 comments on commit e97edff

Please sign in to comment.