SimonWaldherr / golang-examples

Go(lang) examples - (explain the basics of #golang)
https://simonwaldherr.github.io/golang-examples/
MIT License
1.57k stars 453 forks source link

Add JWT authentication example #44

Closed dimensi0n closed 3 years ago

dimensi0n commented 5 years ago

Related to #31

dimensi0n commented 5 years ago

Edited

SimonWaldherr commented 4 years ago

sorry for the delay. please take a look at line 69:

go run expert/jwt_authentication.go 
# command-line-arguments
expert/jwt_authentication.go:69:29: undefined: controllers
dimensi0n commented 4 years ago

Fixed

SimonWaldherr commented 4 years ago

thanks, now it runs. Can you please provide a little information how to use it in the readme file?

e.g.:

go run expert/jwt_authentication.go

then open http://localhost:8080/signin etc. ...