|
il y a 1 an | |
---|---|---|
.idea | il y a 1 an | |
lxCommon | il y a 1 an | |
lxDb | il y a 1 an | |
lxUtil | il y a 1 an | |
lxcors | il y a 1 an | |
lxlog | il y a 1 an | |
lxrun | il y a 1 an | |
lxzap | il y a 1 an | |
README.md | il y a 1 an | |
go.mod | il y a 1 an | |
go.sum | il y a 1 an | |
lxutils.go | il y a 1 an |
To start using LxUtils, install Go and run go get
:
$ go get -u git.listensoft.net/tool/lxutils
Go.
package main
import (
"fmt"
"git.listensoft.net/tool/lxutils"
"git.listensoft.net/tool/lxutils/lxrun"
"git.listensoft.net/tool/lxutils/lxzap"
"github.com/gin-gonic/gin"
)
func main() {
lxutils.Aa()
lxrun.Run("prod", "8989", func() {
//可执行定时器等等
fmt.Println("run cron、mq")
}, router, lxzap.LogConfig{})
}
func router(router *gin.Engine) {
}