You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
209 B
16 lines
209 B
4 years ago
|
//+build go1.9
|
||
|
|
||
|
package concurrent
|
||
|
|
||
|
import "sync"
|
||
|
|
||
|
// Map is a wrapper for sync.Map introduced in go1.9
|
||
|
type Map struct {
|
||
|
sync.Map
|
||
|
}
|
||
|
|
||
|
// NewMap creates a thread safe Map
|
||
|
func NewMap() *Map {
|
||
|
return &Map{}
|
||
|
}
|