First, let's look beyond the implementation details of Gin and see what we do with middleware: permission verification logging interface access verification.... believe
Fast: Routing based on Radix tree, performance is very powerful. Support middleware: built-in many middleware, such as the Logger, Gzip, Authorization, etc. Crash recovery: You...
The previous article introduced how the GIN framework can be combined with middleware. I even made a sketch. Describe unplucked Onions. Add a layer of...
Since JWT is stateless, it can only become invalid when its validity period expires. The server cannot actively invalidate a token. In order to solve...
The format of error messages returned by Gin's built-in validator is not very friendly. This article will make adjustments to implement custom error messages and...
This chapter will group routes, centralize the files that define routes into the same directory, and deal with the static files packaged by the front-end...
This introduction will tell you how to integrate the log service into the project, it is also essential in the framework, peacetime code debugging, online...
The configuration file is an essential part of each project. It is used to save basic application data and database configuration information, avoiding the embarrassment...
The Gin framework uses ShouldBindXXX to bind parameters/data to the structure when handling front-end requests, which is a common way to fetch data, but can...
Small knowledge, big challenge! This article is participating in the creation activity of "Essential Tips for Programmers". This article has participated in the "Digitalstar Project"...
Gin framework implements the most important routing module based on Httprouter and uses a data structure similar to dictionary tree to store the mapping between...
The two most popular lightweight Web frameworks of Go are Gin and Echo. These two frameworks are similar in that they are plug-in lightweight frameworks...
Gin simply describes how to create a routing engine to configure the routing representation: when requesting the address of the first parameter, start the following...
Note: only some important documents are posted here. Please click the above method to obtain the full PDF version. Before installing the Gin package, you...
1. According to the normal MVC pattern, the project organization must be divided into layers and then modules. For example, a module for user verification...