forked from mirror/gin
Merge pull request #1 from msemenistyi/master
update Readme.md. Add code to String method
This commit is contained in:
commit
3253ef5b75
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue