Coherent example code in README
This commit is contained in:
		@ -24,7 +24,7 @@ func main() {
 | 
				
			|||||||
	r := gin.Default()
 | 
						r := gin.Default()
 | 
				
			||||||
	r.GET("/ping", func(c *gin.Context) {
 | 
						r.GET("/ping", func(c *gin.Context) {
 | 
				
			||||||
		c.JSON(200, gin.H{
 | 
							c.JSON(200, gin.H{
 | 
				
			||||||
			"message": "hello world",
 | 
								"message": "pong",
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
	r.Run() // listen and server on 0.0.0.0:8080
 | 
						r.Run() // listen and server on 0.0.0.0:8080
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user