Skip to content

Commit

Permalink
modified: eBook/18.2.md
Browse files Browse the repository at this point in the history
	modified:   eBook/18.3.md
	modified:   eBook/18.4.md
	modified:   eBook/directory.md
  • Loading branch information
songleo committed Jan 3, 2016
1 parent 63367af commit 84b4cd2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions eBook/18.2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 18.2 数组和切片

创建:

`arr1 := new([len]type)`

`slice1 := make([]type, len)`
Expand Down
2 changes: 1 addition & 1 deletion eBook/18.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for key, value := range map1 {
}
```

(2)如何在一个映射中检测键key1是否存在
(2)如何在一个映射中检测键`key1`是否存在

`val1, isPresent = map1[key1]`

Expand Down
2 changes: 1 addition & 1 deletion eBook/18.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type struct1 struct {
ms := new(struct1)
```

初始化:
初始化
```go
ms := &struct1{10, 15.5, "Chris"}
```
Expand Down
11 changes: 0 additions & 11 deletions eBook/directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,6 @@
- 第16章:常见的陷阱与错误
- 第17章:模式
- 第18章:[出于性能考虑的实用代码片段](18.0.md)
-18.1
-18.2
-18.3
-18.4
-18.5
-18.6
-18.7
-18.8
-18.9
-18.10
-18.11
- 第19章:构建一个完整的应用程序
- 第20章:Go 语言在 Google App Engine 的使用
- 第21章:实际部署案例
Expand Down

0 comments on commit 84b4cd2

Please sign in to comment.