From 899a711ec71a7c0608f73a9ff898303db3997eb3 Mon Sep 17 00:00:00 2001 From: Mykyta Semenistyi Date: Mon, 30 Jun 2014 23:28:26 +0300 Subject: [PATCH] update Readme.md. Add code to String method --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b0c4e91b..1c40f13c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import "github.com/gin-gonic/gin" func main() { r := gin.Default() r.GET("ping", func(c *gin.Context){ - c.String("pong") + c.String(200, "pong") }) // Listen and server on 0.0.0.0:8080 @@ -287,4 +287,4 @@ func main() { } s.ListenAndServe() } -``` \ No newline at end of file +```