Fixed typo
This commit is contained in:
parent
b8ab9554dc
commit
af9a6bcb4d
@ -284,7 +284,7 @@ func main() {
|
|||||||
func main() {
|
func main() {
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|
||||||
// gin.H is a shortcup for map[string]interface{}
|
// gin.H is a shortcut for map[string]interface{}
|
||||||
r.GET("/someJSON", func(c *gin.Context) {
|
r.GET("/someJSON", func(c *gin.Context) {
|
||||||
c.JSON(200, gin.H{"message": "hey", "status": 200})
|
c.JSON(200, gin.H{"message": "hey", "status": 200})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user