Skip to content

Instantly share code, notes, and snippets.

@jsonw23
Created April 4, 2022 18:09
Show Gist options
  • Save jsonw23/ea76adf0493231e3a07aabe33afeff98 to your computer and use it in GitHub Desktop.
Save jsonw23/ea76adf0493231e3a07aabe33afeff98 to your computer and use it in GitHub Desktop.
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.GET("/", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "Hello, World",
})
})
r.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment