工具类
| .idea | ||
| lxcors | ||
| lxlog | ||
| lxrun | ||
| lxzap | ||
| go.mod | ||
| go.sum | ||
| lxutils.go | ||
| README.md | ||
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())
}
}