go-webservice-gin-sqlx/main.go
Tyrel Souza b5f71890a6
server
2022-10-17 11:51:16 -04:00

18 lines
379 B
Go

package main
import "web-service-gin/internal/server"
// Initial based on:
// https://go.dev/doc/tutorial/web-service-gin
// https://blog.logrocket.com/how-to-build-a-rest-api-with-golang-using-gin-and-gorm/
// Then moved to Sqlx
// https://github.com/wetterj/gin-sqlx-crud
func main() {
server, err := server.NewServer()
if err != nil {
panic(err)
}
server.Gin.Run()
}