A demo with Hertz
and JWT
- Use
hz
to generate code - Use
JWT
to complete login and authentication - Use
Gorm
andMySQL
Use Hertz's JWT extension, refer to jwt
This demo use hz
to generate code. The use of hz
refers
to hz
The hz
commands used can be found in Makefile
The use of binding and Validate refers to Binding and Validate
This demo use Gorm
to operate MySQL
and refers to Gorm
cd bizdemo/hertz_jwt && docker-compose up
cd bizdemo/hertz_jwt && go run main.go