工具类
Go to file
liuchangshun a46befd1d1 123
2023-12-01 14:40:53 +08:00
.idea first commit 2023-11-21 18:03:56 +08:00
lxCommon 123 2023-11-30 08:49:16 +08:00
lxcors xxx 2023-11-22 08:28:52 +08:00
lxDb 123 2023-12-01 14:27:01 +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 123 2023-12-01 14:40:53 +08:00
go.mod 123 2023-12-01 14:21:12 +08:00
go.sum 123 2023-12-01 14:21:12 +08:00
lxutils.go first commit 2023-11-21 18:03:56 +08:00
README.md 123 2023-11-22 10:09:06 +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{}, lxDb.DbConfig{}, lxDb.RedisConfig{})
}
func router(router *gin.Engine) {

}