Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created August 3, 2019 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supanadit/72cfe4d02f948718f5b2e47c4c113b46 to your computer and use it in GitHub Desktop.
Save supanadit/72cfe4d02f948718f5b2e47c4c113b46 to your computer and use it in GitHub Desktop.
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.GET("/test", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "hello",
})
})
r.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment