iedc-go/vendor/code.hoteas.com/golang/hotime/context_base.go

18 lines
220 B
Go
Raw Normal View History

2020-04-29 15:14:06 +00:00
package hotime
import "time"
type contextBase struct {
Error
tag int64
}
//唯一标志
func (this *contextBase) GetTag() int64 {
if this.tag == int64(0) {
this.tag = time.Now().UnixNano()
}
return this.tag
}