Tag:gin

  • Golang web development based on gin: detailed explanation of routing examples

    Time:2021-3-19

    Gin is an HTTP network framework written in golang. It is similar to Martini’s API and has better performance. In the field of golang web development, it is a very popular web framework. Start a gin web server Use the following command to install gin go get -u github.com/gin-gonic/gin Add dependencies to your code import […]

  • Analysis of binding implementation process of gin golang web development model

    Time:2021-3-13

    We learned that gin can obtain the parameters submitted by the front end through methods like defaultquery or defaultpostform. It’s also easy to use when there are not many parameters, but think about it. If you use this method when the interface has many parameters, you will call the method to get parameters many times. […]

  • Detailed steps of GoLand building gin framework

    Time:2021-2-24

    1. Install go package Download address:https://studygolang.com/dl After downloading, double-click to install. 2. Configure system variables Here you need to configure two system variables, one is root, the other is gopath Note: root and gopath cannot be in the same path, and the variable name must be root and gopath 3. Install Git Download address: https://git-scm.com/ […]

  • The usage of gin in golang network framework

    Time:2020-12-5

    Golang native HTTP library can easily implement an HTTP server, but for complex web services, such as routing resolution, request parameter parsing, object return, etc., native API is not enough. Gin is a web network framework with complete functions and high performance, which is especially suitable for the development of Web API hello world package […]

  • [series] – go gin API routing middleware logging (3)

    Time:2020-8-2

    summary First of all, synchronize the following project overview: In the last article, we shared the planning project directory and parameter verification. Parameter validation uses the version of validator.v8, which has been updated to the version of validator.v9. The latest code can be viewed in GitHub. This article we share: routing Middleware – logging. Log […]

  • [series] – go gin API routing middleware capture exception (4)

    Time:2020-6-29

    summary First of all, synchronize the following project overview: Last article shared, routing Middleware – logging, this article we share: routing Middleware – catch exceptions. When the system is abnormal, prompt “system exception, please contact the administrator!” At the same time, send a panic alarm email. What are anomalies? The exception in go is panic, […]

  • [series] – go gin API routing middleware Jaeger link tracing (5)

    Time:2020-6-4

    summary First, synchronize the following project overview: Last article shared, routing Middleware – catch exception, this article we share: routing Middleware – Jaeger link tracking. What is link tracking? I understand that link tracking actually provides services for the microservice architecture. When multiple service units are requested in a request, if there is an error […]

  • [series] – go gin API routing middleware Jaeger link tracing (6)

    Time:2020-4-21

    Summary First, synchronize the following project overview: In the previous article, we shared the routing middleware Jaeger link tracking (Theory). In this article, we will continue to share: routing middleware Jaeger link tracking (practice). This article has really kept you waiting for a long time, mainly because there are some technical points that have just […]

  • [series] – go gin API routing middleware signature verification (7)

    Time:2020-1-11

    overview First, synchronize the following project overview: The last article shared the routing Middleware – Jaeger link tracking (actual combat). The response is really unexpected. The “Go China” public number has also been forwarded. Many friends have exchanged with my friends, calling me a big God. Actually, I am a big God, but I have […]

  • Snow — a simple and easy-to-use go language business framework

    Time:2020-1-7

    Project address Chinese document changelog Snow Snow is a set of simple and easy-to-use go language business framework, the overall logic design is simple, supporting common business scenarios such as HTTP service, queue scheduling and task scheduling. Goals We are committed to making PHPer more convenient to cut into go language development, adapting to the […]

  • Add, delete, modify and query of users who can quickly start golang web programming in half an hour

    Time:2019-12-24

    1、 Course objectives The goal of this course is to let the novice know the addition, deletion, modification and query process of golang in the shortest time, so as to make the entry-level web development easier This example is to quickly realize the addition, deletion, modification and query of a user, adopting the front and […]

  • Environment configuration method based on go and gin

    Time:2019-12-8

    1. Download the go version officially and install the program of the corresponding platform. 2. Configure environment variables of go: Goroot: go installation path, for example, goroot = D: \ go Gopath: the directory where the project source code is located (for example, gopath = e: \ go). Under this directory, there are mainly three […]