{"repo":"teambition/gear","free":true,"listed":false,"github":"https://github.com/teambition/gear","clone":"git clone https://github.com/teambition/gear.git","description":"A lightweight, composable and high performance web service framework for Go.","language":"Go","stars":543,"topics":["gear","middleware","hooks","router","logging","http2","server-push","go","web","framework"],"license":"MIT","category":"analytics","readme_excerpt":"A lightweight, composable and high performance web service framework for Go. Features - Effective and flexible middlewares flow control, create anything by middleware - Powerful and smart HTTP error handling - Trie base gear.Router, as faster as HttpRouter, support regexp parameters and group routes - Integrated timeout context.Context - Integrated response content compress - Integrated structured logging middleware - Integrated request body parser - Integrated signed cookies - Integrated JSON, JSONP, XML and HTML renderer - Integrated CORS, Secure, Favicon and Static middlewares - More useful methods on gear.Context to manipulate HTTP Request/Response - Run HTTP and gRPC on the same port - Completely HTTP/2.0 supported Documentation Go-Documentation Import Design 1. Server 底层基于原生 net/http 而不是 fasthttp 1. 通过 gear.Middleware 中间件模式扩展功能模块 1. 中间件的单向顺序流程控制和级联流程控制 1. 功能强大，完美集成 context.Context 的 gear.Context 1. 集中、智能、可自定义的错误和异常处理 1. After Hook 和 End Hook 的后置处理 1. Any interface 无限的 gear.Context 状态扩展能力 1. 请求数据的解析和验证 FAQ 1. 如何从源码自动生成 Swagger v2 的文档？ 1. Go 语言完整的应用项目结构最佳实践是怎样的？ Demo Hello https://github.com/teambition/gear/tree/master/example/hello HTTP2 with Push https://github.com/teambition/gear/tree/master/example/http2 A CMD tool: static server https://github.com/teambition/gear/tree/master/example/staticgo Install it with go: It is a useful CMD tool that serve your local files as web server (support TLS). You can build osx , linux , windows version with make build . A CMD tool: rev","default_branch":null,"files":null,"tree":[],"storefront":"/r/teambition","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/teambition/gear/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}