mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
fix: fix a lot of incorrect links (#849)
This commit is contained in:
@@ -274,7 +274,7 @@ type ReaderWriter struct {
|
||||
|
||||
**练习 11.11**:[map_function_interface.go](exercises/chapter_11/map_function_interface.go):
|
||||
|
||||
在练习 7.13 中我们定义了一个 `map()` 函数来使用 `int` 切片 ([map_function.go](exercises\chapter_7\map_function.go))。
|
||||
在练习 7.13 中我们定义了一个 `map()` 函数来使用 `int` 切片 ([map_function.go](exercises/chapter_7/map_function.go))。
|
||||
|
||||
通过空接口和类型断言,现在我们可以写一个可以应用于许多类型的*泛型*的 `map()` 函数,为 `int` 和 `string` 构建一个把 `int` 值加倍和将字符串值与其自身连接(译者注:即 `"abc"` 变成 `"abcabc"` )的 `map()` 函数 `mapFunc()`。
|
||||
|
||||
|
Reference in New Issue
Block a user