Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crufter/routep
The Routep Go package is an overly simplistic way of extracting data from URLs.
https://github.com/crufter/routep
Last synced: 22 days ago
JSON representation
The Routep Go package is an overly simplistic way of extracting data from URLs.
- Host: GitHub
- URL: https://github.com/crufter/routep
- Owner: crufter
- Created: 2012-05-25T07:22:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-07T05:36:52.000Z (over 12 years ago)
- Last Synced: 2024-11-30T21:48:47.619Z (23 days ago)
- Language: Go
- Size: 93.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
routep
======The Routep Go package is an overly simplistic way of extracting data from URLs.
```
package mainimport(
"github.com/opesun/routep"
"fmt"
)func main() {
m, err := routep.Comp("/categories/{category}", "/categories/animals")
fmt.Println(m, err)
}
```The above example will output (not counting the lack of '"'):
```
map["category": "animals"] ""
```