We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "github.com/gin-gonic/gin" ) func main() { g := gin.Default() g.GET("/hello/:name", func(c *gin.Context) { c.String(200, "Hello %s", c.Param("name")) }) g.Run(":9000") }
$ curl http://localhost:9000/hello/world Hello world
$ curl -i http://localhost:9000/hello/world <YOUR RESULT>
The text was updated successfully, but these errors were encountered:
Works fine for me.
curl http://localhost:9000/hello/world Hello world curl -i http://localhost:9000/hello/world HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 Date: Wed, 27 Nov 2024 08:41:31 GMT Content-Length: 11 Hello world
Sorry, something went wrong.
No branches or pull requests
Description
How to reproduce
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: