/kit4go

common tools for go, now are pre-relase, not stable

Primary LanguageGoMIT LicenseMIT

Kit4go

GitHub go.mod Go version Top Languages Go Report Card License Release Build Status Last Commit Workflow for CI Action codecov PR Sourcegraph Open Source Helpers TODOs

The common tools for go.

Support list

  • bit hacks for bit.
  • datetime parse, format, others.
  • file base file ops.
  • ip parse, match, convert, info.
  • json support multi json packages.
  • number round, bytes convert.
  • otp TOTP, HOTP.
  • random rand, random.
  • str common string utils.
  • uuid requestID, go.uuid, ksuid, xid.
  • xlo some utils ref lo, more pls use 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