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/go-martini/martini" "github.com/martini-contrib/gzip" ) func main() { m := martini.Classic() m.Use(gzip.All()) addRouter(m) m.RunOnAddr("0.0.0.0:8089") } func addRouter(m *martini.ClassicMartini) { m.Get("/:name", show) } func show(params martini.Params) (int, string) { println("hhhhhhh") return 200, "bbbb" + params["name"] }
does not work! And the chrome will show the downloader.
package main import ( "github.com/go-martini/martini" "github.com/martini-contrib/gzip" ) func main() { m := martini.Classic() m.Use(gzip.All()) //addRouter(m) m.Get("/aa", func() string { return "aaaaa" }) m.RunOnAddr("0.0.0.0:8089") } /* func addRouter(m *martini.ClassicMartini) { m.Get("/:name", show) } func show(params martini.Params) (int, string) { println("hhhhhhh") return 200, "bbbb" + params["name"] } */
work well!
package main import ( "github.com/go-martini/martini" //"github.com/martini-contrib/gzip" ) func main() { m := martini.Classic() //m.Use(gzip.All()) addRouter(m) m.RunOnAddr("0.0.0.0:8089") } func addRouter(m *martini.ClassicMartini) { m.Get("/:name", show) } func show(params martini.Params) (int, string) { println("hhhhhhh") return 200, "bbbb" + params["name"] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
does not work! And the chrome will show the downloader.
work well!
work well!
The text was updated successfully, but these errors were encountered: