
func main() {
g := gin.Default()
g.GET("/hello/:name", func(c *gin.Context) {
c.String(200, "Hello %s", c.Param("name"))
})
g.Run(":9000")
}
Expectations
$ curl http://localhost:9000/hello/world
Hello world
Actual result
$ curl -i http://localhost:9000/hello/world
<YOUR RESULT>
Environment
- go version:
- gin version (or commit ref):
- operating system:
Comment From: khtabj10
khtabj109@gmail.com
Comment From: khtabj10
Comment From: khtabj10
Comment From: khtabj10
خطاب حاسم محمد
Comment From: JimChenWYU
Are you sure? what's your go version and gin framework version?
Comment From: JIeJaitt
@khtabj10 There must be some misunderstanding here, I suggest you show your screenshots instead of just the code.
Comment From: FarmerChillax
Are you sure? what's your go version and gin framework version?
This is the issue template