Registry / utility / h2non-parth

h2non-parth

JSON →
library0.0.0-20190131123155-b4df798d6542gogounverified

Package parth provides path parsing for segment unmarshaling and slicing, enabling simple access to URL path parameters.

go get github.com/h2non/parth
INSTALL
IMPORT
SIG · H2NON-PARTH
H
h2non-parth
utilitygov0.0.0-20190131123155-b4df798d6542
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.

parth
github.com/h2non/parth

Extract an integer path parameter from a URL path.

package main import ( "fmt" "github.com/h2non/parth" ) func main() { path := "/users/123/posts/456" id, _ := parth.GetInt(path, 1) fmt.Println(id) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190131123155-b4df798d6542latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
h2non-parth — go get h2non-parth · libregistry