{"repo":"naughtygopher/webgo","free":true,"listed":false,"github":"https://github.com/naughtygopher/webgo","clone":"git clone https://github.com/naughtygopher/webgo.git","description":"A microframework to build web apps; with handler chaining, middleware support, and most of all; standard library compliant HTTP handlers(i.e. http.HandlerFunc).","language":"Go","stars":307,"topics":["golang","go","web-framework","api-server","api-rest","middleware","webframework","multiplexer","awesome-go","router"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"WebGo v7.0.4 WebGo is a minimalistic router for Go to build web applications (server side) with no 3rd party dependencies. WebGo will always be Go standard library compliant; with the HTTP handlers having the same signature as http.HandlerFunc. Contents 1. Router 2. Handler chaining 3. Middleware 4. Error handling 5. Helper functions 6. HTTPS ready 7. Graceful shutdown 8. Logging 9. Server-Sent Events 10. Usage Router Webgo has a simplistic, linear path matching router and supports defining URIs with the following patterns 1. /api/users - URI with no dynamic values 2. /api/users/:userID - URI with a named parameter, userID - If TrailingSlash is set to true, it will accept the URI ending with a '/', refer to sample 3. /api/users/:misc - Named URI parameter misc , with a wildcard suffix '\\ ' - This matches everything after /api/users . e.g. /api/users/a/b/c/d When there are multiple handlers matching the same URI, only the first occurring handler will handle the request. Refer to the sample to see how routes are configured. You can access named parameters of the URI using the Context function. Note: webgo Context is not available inside the special handlers (not found & method not implemented) Handler chaining Handler chaining lets you execute multiple handlers for a given route. Execution of a chain can be configured to run even after a handler has written a response to the HTTP request, if you set FallThroughPostResponse to true (refer sample). Middleware WebGo middlware lets","default_branch":null,"files":null,"tree":[],"storefront":"/r/naughtygopher","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/naughtygopher/webgo/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."}