Build RESTful API service in golang using gin-gonic framework

Today, Iโ€™m going to build a simple API for a to-do application using the Go programming language. For this, Iโ€™ll use Gin, one of Goโ€™s simplest and fastest web frameworks, and Gorm, a powerful and flexible ORM for database operations. To get started, youโ€™ll need to install these packages. Navigate to your workspace directory ($GOPATH/src) and run the following commands: $ go get gopkg.in/gin-gonic/gin.v1 $ go get -u github.com/jinzhu/gorm $ go get github.com/go-sql-driver/mysql In generic crud application we need the APIโ€™s as follows: ...

January 20, 2017 ยท 5 min ยท Saddam H