# Lightning ## Docs - [Context](https://docs.lightning-go.cn/concepts/context.md): The Context struct is the single object passed to every handler and middleware in Lightning. It exposes all request data and response helpers. - [Route Groups](https://docs.lightning-go.cn/concepts/groups.md): Organize routes under a shared URL prefix and apply scoped middleware with Lightning route groups. - [Middleware](https://docs.lightning-go.cn/concepts/middleware.md): Chain middleware functions to run shared logic before and after every request in Lightning. - [Routing](https://docs.lightning-go.cn/concepts/routing.md): Register routes for every HTTP method, capture URL parameters, and match wildcard paths in Lightning. - [App Config](https://docs.lightning-go.cn/configuration/app-config.md): Configure a Lightning application using the Config struct and constructor functions. - [Built-in Middleware](https://docs.lightning-go.cn/configuration/built-in-middleware.md): Use Lightning's built-in Logger and Recovery middleware to add request logging and panic recovery to your application. - [Error Handling](https://docs.lightning-go.cn/guides/error-handling.md): Customize 404 responses, recover from panics, and send structured error responses. - [Graceful Shutdown](https://docs.lightning-go.cn/guides/graceful-shutdown.md): Start your server with Run() or RunGraceful() and stop it cleanly on SIGINT/SIGTERM. - [HTML Templates](https://docs.lightning-go.cn/guides/html-templates.md): Render server-side HTML using Go's standard text/template engine with custom template functions. - [Request Handling](https://docs.lightning-go.cn/guides/request-handling.md): Read URL params, query strings, request bodies, headers, and cookies from incoming HTTP requests. - [Responses](https://docs.lightning-go.cn/guides/responses.md): Send JSON, text, HTML, XML, files, and redirects. Use structured helpers for consistent API responses. - [Static Files](https://docs.lightning-go.cn/guides/static-files.md): Serve CSS, JavaScript, images, and other static assets from a directory using app.Static(). - [Installation](https://docs.lightning-go.cn/installation.md): Add Lightning to your Go project and create your first application instance. - [Introduction](https://docs.lightning-go.cn/introduction.md): Lightning is a lightweight, high-performance web framework for Go. Build fast HTTP services with trie-based routing, composable middleware, and an expressive context API. - [Quick start](https://docs.lightning-go.cn/quickstart.md): Create and run your first Lightning web service in under five minutes. ## OpenAPI Specs - [openapi](https://docs.lightning-go.cn/api-reference/openapi.json)