add error code feature for package gerror

This commit is contained in:
John Guo
2020-12-10 23:33:24 +08:00
parent a577605726
commit 84fef8dea3
11 changed files with 188 additions and 50 deletions

View File

@ -13,7 +13,7 @@ func main() {
key := "key"
// 第一次锁带时间
gmlock.Lock(key, 1000)
gmlock.Lock(key)
glog.Println("lock1")
// 这个时候上一次的计时解锁已失效
gmlock.Unlock(key)