工具类
Go to file
liuchangshun c28cf29933 123
2023-11-22 09:59:12 +08:00
.idea first commit 2023-11-21 18:03:56 +08:00
lxCommon 123 2023-11-22 09:59:12 +08:00
lxcors xxx 2023-11-22 08:28:52 +08:00
lxDb 123 2023-11-22 09:59:12 +08:00
lxlog xxx 2023-11-22 08:28:52 +08:00
lxrun 123 2023-11-22 09:59:12 +08:00
lxUtil 123 2023-11-22 09:59:12 +08:00
lxzap xxx 2023-11-22 08:28:52 +08:00
go.mod 123 2023-11-22 09:59:12 +08:00
go.sum 123 2023-11-22 09:59:12 +08:00
lxutils.go first commit 2023-11-21 18:03:56 +08:00
README.md 123 2023-11-22 09:59:12 +08:00

Getting Started

Installing

To start using LxUtils, install Go and run go get:

$ go get -u git.listensoft.net/tool/lxutils

Get a value

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) {

}