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:
22
22
email : false
23
23
24
24
before_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
26
26
27
27
# script always runs to completion (set +e). If we have linter issues AND a
28
28
# 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.
26
26
``` go
27
27
28
28
// Create a new map.
29
- m := cmap.New ()
29
+ m := cmap.New [ string ] ()
30
30
31
31
// Sets item within map, sets "bar" under key "foo"
32
32
m.Set (" foo" , " bar" )
33
33
34
34
// Retrieve item from map.
35
- if tmp , ok := m.Get (" foo" ); ok {
36
- bar := tmp.(string )
37
- }
35
+ bar , ok := m.Get (" foo" )
38
36
39
37
// Removes item under key "foo"
40
38
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
2
2
3
3
go 1.18
You can’t perform that action at this time.
0 commit comments