go-webservice-gin-sqlx/main.go

18 lines
379 B
Go
Raw Normal View History

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