lxutils/README.md
liuchangshun cec47a9608 123
2023-11-22 09:18:58 +08:00

32 lines
605 B
Markdown

Getting Started
===============
## Installing
To start using LxUtils, install Go and run `go get`:
```sh
$ 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.
```go
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())
}
}
```