https://github.com/v8fg/kit4go
common tools for go, now are pre-relase, not stable
https://github.com/v8fg/kit4go
datetime go golang ip json
Last synced: 3 months ago
JSON representation
common tools for go, now are pre-relase, not stable
- Host: GitHub
- URL: https://github.com/v8fg/kit4go
- Owner: v8fg
- License: mit
- Created: 2022-09-05T06:32:31.000Z (almost 4 years ago)
- Default Branch: release
- Last Pushed: 2023-01-04T02:46:30.000Z (over 3 years ago)
- Last Synced: 2025-08-30T10:43:02.802Z (10 months ago)
- Topics: datetime, go, golang, ip, json
- Language: Go
- Homepage:
- Size: 116 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kit4go


[](https://goreportcard.com/report/github.com/v8fg/kit4go)
[](https://opensource.org/licenses/MIT)
[](https://github.com/v8fg/kit4go/releases)
[](https://github.com/v8fg/kit4go/actions?query=branch%3Arelease)
[](https://github.com/v8fg/kit4go)
[](https://github.com/v8fg/kit4go/actions/workflows/pr.yml?query=event%3Apush)
[](https://codecov.io/gh/v8fg/kit4go)
[](https://github.com/v8fg/kit4go/pulls)
[](https://sourcegraph.com/github.com/v8fg/kit4go?badge)
[](https://www.codetriage.com/v8fg/kit4go)
[](https://www.tickgit.com/browse?repo=github.com/v8fg/kit4go)
> The common tools for go.
## Support list
- [x] [bit](bit) hacks for bit.
- [x] [datetime](datetime) parse, format, others.
- [x] [file](file) base file ops.
- [x] [ip](ip) parse, match, convert, info.
- [x] [json](json) support multi json packages.
- [x] [number](number) round, bytes convert.
- [x] [otp](otp) `TOTP`, `HOTP`.
- [x] [random](random) rand, random.
- [x] [str](str) common string utils.
- [x] [uuid](uuid) requestID, go.uuid, ksuid, xid.
- [x] [xlo](xlo) some utils ref *lo*, more pls use [lo](https://github.com/samber/lo) directly.
## Install
`go get -u github.com/v8fg/kit4go`
## Notes
> If test failed, maybe effected by the inline, you can try: `go test -v -gcflags=all=-l xxx_test.go`.
## CMD
- **release check**: `make`
- **coverage**: `make cover`
- **format check**: `make fmt-check`
- **format fixed**: `make fmt`
- **misspell check**: `make misspell-check`
- **golang lint**: `make golangci`
- **escape analysis**: `make escape` or `ESCAPE_PATH=ip make escape`