summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/modern-go/concurrent/go_above_19.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/modern-go/concurrent/go_above_19.go')
-rw-r--r--vendor/github.com/modern-go/concurrent/go_above_19.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/modern-go/concurrent/go_above_19.go b/vendor/github.com/modern-go/concurrent/go_above_19.go
new file mode 100644
index 00000000..aeabf8c4
--- /dev/null
+++ b/vendor/github.com/modern-go/concurrent/go_above_19.go
@@ -0,0 +1,15 @@
+//+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{}
+}