Skip to content
/ kit4go Public

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

License

Notifications You must be signed in to change notification settings

v8fg/kit4go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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