mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
Fix links to the code examples
Change-Id: I644c6a516abab2577353644c128102457deeb41a
This commit is contained in:
@@ -49,7 +49,7 @@ slice 在内存中的组织方式实际上是一个有 3 个域的结构体:
|
||||
|
||||

|
||||
|
||||
示例 7.7 [array_slices.go](exmaples/chapter_7/array_slices.go)
|
||||
示例 7.7 [array_slices.go](examples/chapter_7/array_slices.go)
|
||||
|
||||
package main
|
||||
import "fmt"
|
||||
@@ -142,7 +142,7 @@ make 的使用方式是:`func make([]T, len, cap)` 其中 cap 是可选参数
|
||||
|
||||
下图描述了使用 make 方法生成的 slice 的内存结构:
|
||||
|
||||
示例 7.8 [make_slice.go](exmaples/chapter_7/make_slice.go)
|
||||
示例 7.8 [make_slice.go](examples/chapter_7/make_slice.go)
|
||||
|
||||
package main
|
||||
import "fmt"
|
||||
@@ -260,4 +260,4 @@ Buffer 可以这样定义:`var buffer bytes.Buffer`
|
||||
|
||||
- [目录](directory.md)
|
||||
- 上一节:[声明和初始化](07.1.md)
|
||||
- 下一节:[For-range 结构](07.3.md)
|
||||
- 下一节:[For-range 结构](07.3.md)
|
||||
|
Reference in New Issue
Block a user