Skip to content

Commit

Permalink
upd go map.md
Browse files Browse the repository at this point in the history
  • Loading branch information
halyph committed Nov 14, 2023
1 parent a861396 commit 2ce67cb
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions docs/wiki/Lang-Go/Cookbook/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ import (
)

var (
barVal = map[string]int{"alpha": 1, "bravo": 2, "charlie": 3, "delta": 4,
"echo": 5, "foxtrot": 6}
barVal = map[string]int{
"alpha": 1,
"bravo": 2,
"charlie": 3,
"delta": 4,
"echo": 5,
"foxtrot": 6,
}
)

func main() {
Expand Down Expand Up @@ -67,9 +73,20 @@ import (
)

var (
barVal = map[string]int{"alpha": 34, "bravo": 56, "charlie": 23, "delta": 87,
"echo": 56, "foxtrot": 12, "golf": 34, "hotel": 16, "indio": 87, "juliet": 65, "kilo": 43,
"lima": 98}
barVal = map[string]int{
"alpha": 34,
"bravo": 56,
"charlie": 23,
"delta": 87,
"echo": 56,
"foxtrot": 12,
"golf": 34,
"hotel": 16,
"indio": 87,
"juliet": 65,
"kilo": 43,
"lima": 98,
}
)

func main() {
Expand Down

0 comments on commit 2ce67cb

Please sign in to comment.