1 Star 0 Fork 0

h79/gothird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
time.go 326 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h79/gothird.git
git@gitee.com:h79/gothird.git
h79
gothird
gothird
v1.8.39

搜索帮助