Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 408 Bytes

File metadata and controls

19 lines (10 loc) · 408 Bytes

CRUDAPI-in-GOLANG-using-Gin-Web-Framework

Created API in GOLANG using Gin Web Framework which contain GET,POST,PUT,DELETE Methods.

first create main.go file and than in terminal.

go mod init main

go mod tidy

and import

go get -u "gorm.io/gorm"

go get -u "github.com/gin-gonic/gin"

go get -u "gorm.io/driver/sqlserver" //as per your Database

https://gorm.io/docs/connecting_to_the_database.html