Exemple #1
0
// regexful route
// a => hello , b=>world when access GET /hello/world
func (h *NamedHandler) Get(c *context.Context) {
	var res = fmt.Sprintf("a=>%s,b=%s", c.Query("a"), c.Query("b"))
	c.ResponseWriter.Write([]byte(res))
}