Skip to content

Boilerplate app for building RESTful APIs in GOlang with MySQL integration.

Notifications You must be signed in to change notification settings

SamixDev/GOlang-REST-API-MySQL-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

GOlang-mysql-api-example

This is an example of building REST api with MySQL integration using GOlang.

After creating your project if you do not have gorilla mux and go mysql driver Please install those packages: go get -u github.com/gorilla/mux go get -u github.com/go-sql-driver/mysql

We will be using MySQL to connect to the database. I have already created a table in my database called "usertest" with columns "id", "name", "country" and "number" make sure "id" is auto-increment as i am not going to insert and update the id in the code.

Happy Coding :)

Releases

No releases published

Packages

No packages published

Languages