hotime/base_context.go

18 lines
229 B
Go
Raw Normal View History

2017-08-23 02:05:47 +00:00
package hotime
import "time"
type baseContext struct {
Error
tag int64
}
//唯一标志
func (this *baseContext) GetTag() int64 {
if this.tag == int64(0) {
this.tag = time.Now().UnixNano()
}
return this.tag
}