kit4go

module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT

README

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

Directories

Path Synopsis
Package bit contains some bit ops, some bithacks ref: https:graphics.stanford.edu/~seander/bithacks.html.
Package bit contains some bit ops, some bithacks ref: https:graphics.stanford.edu/~seander/bithacks.html.
Package datetime constants, layout format with ISO8601:2004, more info ref: src/time/format.go.
Package datetime constants, layout format with ISO8601:2004, more info ref: src/time/format.go.
Package random, the file refs the crypto/rand, it implements a cryptographically secure random number generator.
Package random, the file refs the crypto/rand, it implements a cryptographically secure random number generator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL