|
hace 1 año | |
---|---|---|
.idea | hace 1 año | |
lxCommon | hace 1 año | |
lxDb | hace 1 año | |
lxUtil | hace 1 año | |
lxcors | hace 1 año | |
lxlog | hace 1 año | |
lxrun | hace 1 año | |
lxzap | hace 1 año | |
README.md | hace 1 año | |
go.mod | hace 1 año | |
go.sum | hace 1 año | |
lxutils.go | hace 1 año |
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) {
}