From f8add234f91daf1102bbaf5d45585690ad42ac8a Mon Sep 17 00:00:00 2001 From: cloverstd Date: Tue, 16 Jan 2018 18:15:29 +0800 Subject: [PATCH] feat: add map to support go 1.9 --- base.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base.go b/base.go index 4a6af70..4c7acc3 100644 --- a/base.go +++ b/base.go @@ -9,6 +9,10 @@ type Cond struct { sync.Cond } +type Map struct { + sync.Map +} + func NewCond(l Locker) *Cond { return (*Cond)(unsafe.Pointer(sync.NewCond(l))) }