Skip to content

Commit d5feaff

Browse files
author
刘建秋
committed
Merge branch 'master' of github.com:iotd/jackliu-golang-notes into master
2 parents bd6b7ef + e32a4e4 commit d5feaff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

EN/map.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Use slices as map values
1212
```
1313
mp1: = make (map [int] [] int)
14-
mp2: = make (map [int] * [] int)
14+
mp2: = make (map [int] *[] int)
1515
```
1616

1717
When only traversing the key KEY, use the following form, without changing the value to the anonymous variable form, ignore the value:
@@ -45,9 +45,9 @@ var mapData sync.Map
4545
4646
4747
#Iterate over all key-value pairs in sync.Map
48-
mapData.Range (func (k, v interface {}) bool {
48+
mapData.Range (func (k, v interface{}) bool {
4949
    fmt.Println ("list-kv:% v,% v", k, v)
5050
    return true
5151
})
5252
53-
```
53+
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| :------ | :---------- |
88
| Author | Jack Liu |
99
| Email | stackgo@163.com |
10-
| WeChat | laulinux |
10+
| WeChat | labsec |
1111
| QQ | 404691073 |
1212
| Blog | https://wdft.com |
1313

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| :------ | :---------- |
1212
| Author | Jack Liu 秋 |
1313
| Email | stackgo@163.com |
14-
| WeChat | laulinux |
14+
| WeChat | labsec |
1515
| QQ | 404691073 |
1616
| Blog | https://wdft.com |
1717

0 commit comments

Comments
 (0)