2 Star 0 Fork 0

码布什/go工具库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 970 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengqiuyun 提交于 2023-02-21 17:44 +08:00 . 某一天的结束日期
package main
import (
"gitee.com/manoshi/go-util/concurrent/GoroutineExecutor"
"gitee.com/manoshi/go-util/conf"
"gitee.com/manoshi/go-util/es"
"gitee.com/manoshi/go-util/log"
"gitee.com/manoshi/go-util/mysqlrym"
"gitee.com/manoshi/go-util/redis"
"gitee.com/manoshi/go-util/router"
"gitee.com/manoshi/go-util/util"
"time"
)
func main() {
orderCode := "2020202021212"
log.Debugf("订单完成通知:%s", orderCode)
GoroutineExecutor.SynDo(func() {
panic("真的错误了")
})
log.Debug("测试")
log.Info("测试")
log.Warn("测试")
log.Error("测试")
log.Infof("当前时间戳:%d秒 %d毫秒", util.Second(time.Now()), util.MilSecond(time.Now()))
log.Infof("1e6为:%f", 1e6)
log.Infof("1e9为:%f", 1e9)
conf.BaseConfig(conf.Config{
ServerName: "rym-framework",
Env: "dev",
HttpPort: 1024,
LogColorful: true,
})
mysqlrym.TestLog()
es.TestLog()
redis.TestLog()
c := router.InitGinEngine(true)
router.Run(c)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/manoshi/go-util.git
git@gitee.com:manoshi/go-util.git
manoshi
go-util
go工具库
v0.0.15

搜索帮助