diff --git a/main.go b/main.go new file mode 100644 index 0000000..d162fa2 --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import "github.com/gin-gonic/gin" + +func main() { + e := gin.Default() + + e.GET("/", func(c *gin.Context) { + c.JSON(200, gin.H{ + "message": "Hello World", + }) + }) + e.Run(":8080") +}