Skip to content
New issue

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

$ go run example.go #4057

Open
khtabj10 opened this issue Sep 18, 2024 · 7 comments
Open

$ go run example.go #4057

khtabj10 opened this issue Sep 18, 2024 · 7 comments

Comments

@khtabj10
Copy link

![Screenshot_٢٠٢٤٠٩١٧-٢٠١٥٤٠](https://github.com/user-attachments/assets/b67fa28e-d369
Screenshot_٢٠٢٤٠٩١٢-٠٨٤٩١٢

  • With issues:
    • Use the search tool before opening a new issue.
    • Please provide source code and commit sha if you found a bug.
    • Review existing issues and provide feedback or react to them.

Description

How to reproduce

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")
}

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:
@khtabj10
Copy link
Author

khtabj109@gmail.com

@khtabj10
Copy link
Author

Uploading Screenshot_٢٠٢٤٠٩١٢-٠٨٥٠٢٥.jpg…

@khtabj10
Copy link
Author

Uploading tone.xml…

@khtabj10
Copy link
Author

خطاب حاسم محمد

@JimChenWYU
Copy link

image

Are you sure? what's your go version and gin framework version?

@JIeJaitt
Copy link

@khtabj10 There must be some misunderstanding here, I suggest you show your screenshots instead of just the code.

@FarmerChillax
Copy link
Contributor

image Are you sure? what's your go version and gin framework version?

This is the issue template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants