Open shashipratap opened 4 years ago
This is not a gin issue. The line c.FullPath() == "/user/:name/*action"
evaluates to an unused value and so must be discarded or used. Otherwise, the go compiler will not build the application.
This is not a gin issue. The line
c.FullPath() == "/user/:name/*action"
evaluates to an unused value and so must be discarded or used. Otherwise, the go compiler will not build the application.
Agree , but shouldn't we write code in examples that actually works , just to improve readme.md
Description
while running the example of parameters in Path as given in readme.md it fails with error
c.FullPath() == "/user/:name/*action" evaluated but not used
How to reproduce
create a file example.go as below and run it with command go run example.go
`package main
import ( "github.com/gin-gonic/gin" "net/http" "fmt" )
func main() { router := gin.Default()
} `
Expectations
go run example.go should run without errors and README updated accordingly with some explanation about fullpath and context
Environment