{"repo":"go-think/think","free":true,"listed":false,"github":"https://github.com/go-think/think","clone":"git clone https://github.com/go-think/think.git","description":"A lightweight MVC framework written in Go (Golang).","language":"Go","stars":229,"topics":["goweb","web-framework","httprouter","orm","mvc","session","http","laravel","think","log"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Think Think is a lightweight MVC framework written in Go (Golang). Installation The only requirement is the Go Programming Language Quick start Features - Routing - Middleware - Controller - Request - Response - View - HTTP Session - Logging - Cache - ORM Routing Basic Routing The most basic routes accept a URI and a Closure, providing a very simple and expressive method of defining routes: Available Router Methods The router allows you to register routes that respond to any HTTP verb: Sometimes you may need to register a route that responds to multiple HTTP verbs. You may even register a route that responds to all HTTP verbs using the Any method: Parameters in path Of course, sometimes you will need to capture segments of the URI within your route. For example, you may need to capture a user's ID from the URL. You may do so by defining route parameters: You may define as many route parameters as required by your route: Route Prefixes The prefix method may be used to prefix each route in the group with a given URI. For example, you may want to prefix all route URIs within the group with admin : Route Groups Route groups allow you to share route attributes, such as middleware or prefix, across a large number of routes without needing to define those attributes on each individual route. Middleware Middleware provide a convenient mechanism for filtering HTTP requests entering your application. You only need to implement the Middleware interface. Before Middleware Whether a middl","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-think","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-think/think/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."}