update Readme.md. Add code to String method
This commit is contained in:
parent
bf1ecfcf70
commit
899a711ec7
@ -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
Block a user