Common Go utilities for web services, with Hertz-friendly integrations.
go get github.com/kainonly/go| Package | Purpose |
|---|---|
vd |
Validator wrapper and Hertz integration |
passport |
JWT auth helpers |
csrf |
CSRF protection middleware |
captcha |
Redis-backed captcha verification |
locker |
Redis-backed counters and lockout helpers |
passlib |
Password hashing and verification |
totp |
TOTP secret generation and validation |
cipher |
Symmetric encryption helpers |
help |
Small utility helpers |
Import only the package you need:
import "github.com/kainonly/go/vd"
validate := vd.Default()
_ = validate.Validate(req)Detailed usage is kept in package comments:
go doc github.com/kainonly/go/vd
go doc github.com/kainonly/go/passport
go doc github.com/kainonly/go/csrf