update the filter for URL

pull/23/head
astaxie 8 years ago
parent 620f052d93
commit 763382e4ce
  1. 3
      g_docs.go

@ -77,12 +77,13 @@ func urlReplace(src string) string {
if len(p) > 0 {
if p[0] == ':' {
pt[i] = "{" + p[1:] + "}"
} else if p[0] == "?" && p[1] == ":" {
pt[i] = "{" + p[2:] + "}"
}
}
}
return strings.Join(pt, "/")
}
`
const (

Loading…
Cancel
Save