1 Star 0 Fork 0

h79 / gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
time.go 326 Bytes
一键复制 编辑 原始数据 按行查看 历史
huqiuyun 提交于 2023-07-28 16:16 . 还是把 token 放在这里
package token
import "time"
type updateTime struct {
createAt int64
updateAt int64
}
func (u *updateTime) Update() {
u.updateAt = time.Now().Unix()
}
func (u *updateTime) Complete() {
u.createAt = time.Now().Unix()
u.updateAt = u.createAt
}
func (u *updateTime) HasUpdate() bool {
return u.updateAt != u.createAt
}
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.103

搜索帮助