https://github.com/tupizz/go-gin
jwt with gin and gorm
https://github.com/tupizz/go-gin
Last synced: 2 months ago
JSON representation
jwt with gin and gorm
- Host: GitHub
- URL: https://github.com/tupizz/go-gin
- Owner: tupizz
- Created: 2021-06-27T01:33:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T01:34:05.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T14:47:23.245Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
go mod init
---
// gin framework
go get -u github.com/gin-gonic/gin// ORM library
go get -u github.com/jinzhu/gorm// package that we will be used to authenticate and generate our JWT
go get -u github.com/dgrijalva/jwt-go// to help manage our environment variables
go get -u github.com/joho/godotenv// to encrypt our user's password
go get -u golang.org/x/crypto---
questions:
1 - what is this structure? How can I create one like this?
```go
gin.H{"data": "hello from controler"}
```