diff --git a/go-crud b/go-crud index 047255a..8e7aa62 100755 Binary files a/go-crud and b/go-crud differ diff --git a/main.go b/main.go index 90130d8..7a74121 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,19 @@ package main -import "fmt" +import ( + "net/http" + + "github.com/gin-gonic/gin" +) func main() { - fmt.Println("Hello world 123") + r := gin.Default() + + r.GET("/", func(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{ + "message": "pong", + }) + }) + + r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080") }