Authentication is used by a server or a client when the server or the client needs to know that the server is system it claims to be.
This is a code written in the Golang, which requires User to prove his identity to the server or client. Using this code in Go, you can develop the user authentication feature with user name and password.
PACKAGES
Simply install the package to your $GOPATH with the go tool from shell:
github.com/go-sql-driver/mysql
A MySQL-Driver for Go's database/sql package
golang.org/x/crypto/bcrypt
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm
LIBRARIES
github.com/joho/godotenv
A Go (golang) port of the Ruby dotenv (which loads env vars from a .env file)
SAMPLE SCREENSHOTS
Login
Register