File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1+ .idea /
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ notifications:
2222 email : false
2323
2424before_script :
25- - curl -sfL https:// install.goreleaser.com/ github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
25+ - go install github.com/golangci/golangci-lint/cmd/golangci-lint@ latest
2626
2727# script always runs to completion (set +e). If we have linter issues AND a
2828# failing test, we want to see both. Configure golangci-lint with a
Original file line number Diff line number Diff line change @@ -26,15 +26,13 @@ The package is now imported under the "cmap" namespace.
2626``` go
2727
2828 // Create a new map.
29- m := cmap.New ()
29+ m := cmap.New [ string ] ()
3030
3131 // Sets item within map, sets "bar" under key "foo"
3232 m.Set (" foo" , " bar" )
3333
3434 // Retrieve item from map.
35- if tmp , ok := m.Get (" foo" ); ok {
36- bar := tmp.(string )
37- }
35+ bar , ok := m.Get (" foo" )
3836
3937 // Removes item under key "foo"
4038 m.Remove (" foo" )
Original file line number Diff line number Diff line change 1- module github.com/orcaman/concurrent-map
1+ module github.com/orcaman/concurrent-map/v2
22
33go 1.18
You can’t perform that action at this time.
0 commit comments