package gterm import "sync" var curCtr = 0 var ctrLck sync.Mutex func ctr() int { ctrLck.Lock() defer ctrLck.Unlock() curCtr++ return curCtr }