Skip to content

kainonly/go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

515 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Utils

GitHub Workflow Status Coveralls github GitHub go.mod Go version Go Report Card Release GitHub license

Common Go utilities for web services, with Hertz-friendly integrations.

Install

go get github.com/kainonly/go

Packages

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

Usage

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

License

BSD-3-Clause License

About

A collection of commonly used Go utilities for web development (with Hertz-friendly integrations).

Resources

License

Stars

Watchers

Forks

Contributors

Languages