Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

routep
======

The Routep Go package is an overly simplistic way of extracting data from URLs.

```
package main

import(
"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"] ""
```