工具类
Go to file
liuchangshun 5a1008b142 123
2023-11-22 09:20:38 +08:00
.idea first commit 2023-11-21 18:03:56 +08:00
lxcors xxx 2023-11-22 08:28:52 +08:00
lxlog xxx 2023-11-22 08:28:52 +08:00
lxrun 123 2023-11-22 09:20:38 +08:00
lxzap xxx 2023-11-22 08:28:52 +08:00
go.mod xxx 2023-11-22 08:28:52 +08:00
go.sum xxx 2023-11-22 08:28:52 +08:00
lxutils.go first commit 2023-11-21 18:03:56 +08:00
README.md 123 2023-11-22 09:18:58 +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

Get searches json for the specified path. A path is in dot syntax, such as "name.last" or "age". When the value is found it's returned immediately.

package main

import (
	"git.listensoft.net/tool/lxutils"
	"git.listensoft.net/tool/lxutils/lxlog"
	"git.listensoft.net/tool/lxutils/lxzap"
)

func main() {
	lxutils.Aa()
	lxlog.InitLog()
	err := lxzap.InitLogger(lxzap.LogConfig{})
	if err != nil {
		panic(err.Error())
	}
}