Last active
February 7, 2020 10:27
-
-
Save alfaben12/e808eb75964764e9a2b3c3255bb7d8fd to your computer and use it in GitHub Desktop.
Gin gonic main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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