/mysql-form

a signup/registration form that accepts user details through a frontend or API call and stores the details in a mysql database

bookstore

Building a bookstore management API with sql database e.g mysql

Install

Any version of golang

gorilla/mux package

go get -u github.com/gorilla/mux

gorm package

 go get -u "github.com/jinzhu/gorm"

mysql package

 go get -u "github.com/jinzhu/gorm/dialects/mysql"

include your dialect and argument in gorm.Open()e.g.

func connect(){
gorm.Open("mysql","user:password@/dbname?charset=utf8&parseTime=True&loc=Local")
}