Ecosyste.ms: Packages

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

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/alexandrevicenzi/yagm

Package yagm implements a simple regular expression pattern match mux. YagmMux uses regular expressions to match an URL. If you're familiar with Django, the patterns match is almost the same. If you're not, take a look in the pattern match explanation below. Remember, the declared order can affect the match. For example, if you place "^/[a-z]+" before "^/index" it will never match "^/index", as the regular expression of "^/[a-z]+" can match "/index" too. The route "^/$" will match only The route "^/files" will match The route "^/index$" will match and will not match If you use named groups like "^/(?P<name>[a-zA-Z]+)$" you can use yagm.Param or yagm.Params function to retrieve the value ot the groups. YagmMux is very close to http.ServeMux. You can replace your actual http.ServeMux by YagmMux without any problem.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/alexandrevicenzi/yagm
Keywords: go, golang, mux, mux-server, regex, servemux
License: MIT
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/alexandrevicenzi
Stars: 3 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 12 days ago

    Loading...
    Readme
    Loading...