Skip to content

Instantly share code, notes, and snippets.

@alfaben12
Last active February 7, 2020 10:27
Show Gist options
  • Save alfaben12/e808eb75964764e9a2b3c3255bb7d8fd to your computer and use it in GitHub Desktop.
Save alfaben12/e808eb75964764e9a2b3c3255bb7d8fd to your computer and use it in GitHub Desktop.
Gin gonic main.go
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.GET("/welcome", func(c *gin.Context) {
c.JSON(200, gin.H{
"error": false,
"message": "Yayyyy I'am Gin Gonic",
})
})
r.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment