An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.0% on proxy.golang.org
Top 2.2% dependent packages on proxy.golang.org
Top 1.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/honeycombio/urlshaper

Package urlshaper creates a normalized shape (and other fields) from a URL. Given a URL or a URL Path (eg http://example.com/foo/bar?q=baz or just /foo/bar?q=baz) and an optional list of URL patterns, urlshaper will return an object that has that URL broken up in to its various components and provide a normalized shape of the URL. URL inputs to the urlshaper should be strings. They can be either fully qualified URLs or just the path. (Anything that the net/url parser can parse should be fine.) Valid URL inputs: Patterns should describe only the path section of the URL. Variable portions of the URL should be identified by a preceeding the section name with a colon (":"). To match additional sections after the pattern, include a terminal asterisk ("*") Valid patterns: If there is no error, the returned Result objected always has URI, Path, and Shape filled in. The remaining fields will have zero values if the corresponding sections of the URL are missing.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/honeycombio/urlshaper
License: Apache-2.0
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/honeycombio
Dependent packages: 6
Dependent repositories: 8
Stars: 5 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...