Ecosyste.ms: Packages

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

Top 2.2% on proxy.golang.org
Top 1.3% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 3.7% forks on proxy.golang.org

proxy.golang.org : github.com/aofei/air

Package air implements an ideally refined web framework for Go. A router is basically the most important component of a web framework. In this framework, registering a route usually requires at least two params: The first param is a route path that contains 6 components. Among them, "users", "posts" and "assets" are STATIC components, ":UserID" and ":PostID" are PARAM components, "*" is an ANY component. Note that all route params (PARAM and ANY components) will be parsed into the `Request` and can be accessed via the `Request.Param` and `Request.Params`. The name of a `RequestParam` parsed from a PARAM component always discards its leading ":", such as ":UserID" will become "UserID". The name of a `RequestParam` parsed from an ANY component is "*". The second param is a `Handler` that serves the requests that match this route.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/aofei/air
Keywords: air, framework, go, web
License: MIT
Latest release: about 3 years ago
First release: over 5 years ago
Namespace: github.com/aofei
Dependent packages: 12
Dependent repositories: 36
Stars: 422 on GitHub
Forks: 42 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago

    Loading...
    Readme
    Loading...