Registry / web-framework / ucarion-urlpath

ucarion-urlpath

JSON →
library0.0.0-20200424170820-7ccc79b76bbbgogounverified

Matches URL paths against templates for validation and data extraction in REST-like applications.

go get github.com/ucarion/urlpath
INSTALL
IMPORT
SIG · UCARION-URLPATH
U
ucarion-urlpath
web-frameworkgov0.0.0-20200424170820-7ccc79b76bbb
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

urlpath
✓ github.com/ucarion/urlpath

Match a URL path and extract parameters.

package main import ( "fmt" "github.com/ucarion/urlpath" ) func main() { path := urlpath.New("/users/:id") params, ok := path.Match("/users/123") if ok { fmt.Println(params["id"]) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200424170820-7ccc79b76bbblatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ucarion-urlpath — go get ucarion-urlpath · libregistry