update Readme.md. Add code to String method

This commit is contained in:
Mykyta Semenistyi 2014-06-30 23:28:26 +03:00
parent bf1ecfcf70
commit 899a711ec7

View File

@ -24,7 +24,7 @@ import "github.com/gin-gonic/gin"
func main() { func main() {
r := gin.Default() r := gin.Default()
r.GET("ping", func(c *gin.Context){ r.GET("ping", func(c *gin.Context){
c.String("pong") c.String(200, "pong")
}) })
// Listen and server on 0.0.0.0:8080 // Listen and server on 0.0.0.0:8080