feat: super 包新增 LaunchTime 函数,支持获取程序启动时间

This commit is contained in:
kercylan98 2023-10-21 11:16:27 +08:00
parent 74a6b545c2
commit 20f62fee87
1 changed files with 10 additions and 0 deletions

10
utils/super/super.go Normal file
View File

@ -0,0 +1,10 @@
package super
import "time"
var launchTime = time.Now()
// LaunchTime 获取程序启动时间
func LaunchTime() time.Time {
return launchTime
}