gterm/util.go

14 lines
150 B
Go
Raw Normal View History

2021-11-16 10:50:52 +00:00
package gterm
2021-11-16 18:04:21 +00:00
import "sync"
var curCtr = 0
var ctrLck sync.Mutex
func ctr() int {
ctrLck.Lock()
defer ctrLck.Unlock()
curCtr++
return curCtr
}