8000 GitHub - troyanov/rewrite: URL rewriting for Golang
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

troyanov/rewrite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Badge Go Docs Badge

Rewrite

Golang URL rewriting

Usage

import "github.com/haoxins/rewrite"

// ...

handler := rewrite.NewHandler(map[string]string{
  "/a": "/b",
  "/api/(.*)", "/api/v1/$1",
  "/api/(.*)/actions/(.*)", "/api/v1/$1/actions/$2",
  "/from/:one/to/:two", "/from/:two/to/:one",
})

// ...

About

URL rewriting for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0