Initial QSfera import
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
# GoInfo
|
||||
|
||||
`goutil/x/goinfo` provide some useful info for golang.
|
||||
|
||||
> Github: https://github.com/gookit/goutil
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
go get github.com/gookit/goutil/x/goinfo
|
||||
```
|
||||
|
||||
## Go docs
|
||||
|
||||
- [Go docs](https://pkg.go.dev/github.com/gookit/goutil)
|
||||
|
||||
## Usage
|
||||
|
||||
```go
|
||||
gover := goinfo.GoVersion() // eg: "1.15.6"
|
||||
|
||||
```
|
||||
|
||||
## Testings
|
||||
|
||||
```shell
|
||||
go test -v ./goinfo/...
|
||||
```
|
||||
|
||||
Test limit by regexp:
|
||||
|
||||
```shell
|
||||
go test -v -run ^TestSetByKeys ./goinfo/...
|
||||
```
|
||||
Reference in New Issue
Block a user