mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 06:19:44 +08:00
@@ -102,7 +102,7 @@ func main() {
|
|||||||
|
|
||||||
```
|
```
|
||||||
type: float64
|
type: float64
|
||||||
value: <float64 Value>
|
value: 3.4
|
||||||
type: float64
|
type: float64
|
||||||
kind: float64
|
kind: float64
|
||||||
value: 3.4
|
value: 3.4
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# 11.9 空接口
|
# 11.9 空接口
|
||||||
|
|
||||||
## 11.9.1 概念
|
## 11.9.1 概念
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ var interfaceSlice []interface{} = dataSlice
|
|||||||
var dataSlice []myType = FuncReturnSlice()
|
var dataSlice []myType = FuncReturnSlice()
|
||||||
var interfaceSlice []interface{} = make([]interface{}, len(dataSlice))
|
var interfaceSlice []interface{} = make([]interface{}, len(dataSlice))
|
||||||
for ix, d := range dataSlice {
|
for ix, d := range dataSlice {
|
||||||
interfaceSlice[i] = d
|
interfaceSlice[ix] = d
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user