Simple API with go ,gin and mysql
replace test with your db go_api
db, err := gorm.Open("mysql", "root:@/go_api?charset=utf8&parseTime=True&loc=Local")
1. Mac
brew install glide
2. Linux
sudo apt-get install glide
after install glide
1. glide init
2. glide install
you should import the library first in terminal
go get github.com/gin-gonic/gin
go get golang.org/x/crypto/bcrypt
go get github.com/go-sql-driver/mysql
go get github.com/kataras/go-sessions
go run main.go