mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
update
This commit is contained in:
@@ -53,7 +53,7 @@ func main() {
|
||||
但是如果你想要一个排序的列表你最好使用结构体切片,这样会更有效:
|
||||
|
||||
```go
|
||||
type struct {
|
||||
type name struct {
|
||||
key string
|
||||
value int
|
||||
}
|
||||
|
@@ -26,7 +26,6 @@ func main() {
|
||||
for k, v := range invMap {
|
||||
fmt.Printf("Key: %v, Value: %v / ", k, v)
|
||||
}
|
||||
fmt.Println()
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user