Skip to content

shanakasp/go-rest-api-SQL-build-Gin-Automigrate-BoilerPlate

Repository files navigation

go mod init

go get github.com/githubnemo/CompileDaemon
https://github.com/githubnemo/CompileDaemon

go install github.com/githubnemo/CompileDaemon

go get github.com/gin-gonic/gin

go get -u github.com/go-sql-driver/mysql

Created main.go file

CompileDaemon -command="./projectName"

Have used prepared statements

example:-
stmt, err := db.Prepare("SELECT \* FROM album WHERE id = ?")
if err != nil {
log.Fatal(err)
}

https://go.dev/doc/database/prepared-statements

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages