Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created Aug 3, 2019
Embed
What would you like to do?
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