Moment For Technology

Gin(9): Generates restful interfaces

Imperceptibly has updated to the ninth, I hope to help readers. Having gained a basic understanding of the concepts and functions in Gin and how to use them in code, let's take a step back a long time. How long will it take? Presumably when you were learning Gin routing in Chapter 2. Today, do not do on templates...

GoKit or grpc-go

This is a shared resource where information may have evolved or changed. <p>Hi all<br/> I want to use microservice architecture and I am thinking about to use grpc-go or gok...

Of the 30 common file operations in Go, there's always one you can use

The official file operation standard library provided by Go is scattered in multiple packages such as OS and Ioutil, and there are many methods in it covering all the scenarios of file operation. However, there are not many scenarios that require direct file operation in my normal development process, and besides, it is difficult to search the documents of Go standard library. Every time I have to use a file function, I directly Google the corresponding function. I happened to find a man abroad in 2...

Inline functions and compiler optimizations for Go code

In many technical materials and blogs about the underlying Go language, the term "inline function" is mentioned. Some people also refer to the inline function as code inlining, function expansion, function expansion and so on. In fact, what they want to express is the optimization of function call by Go compiler. The compiler will replace some function calls directly with the code inside the called function being expanded at the call point to reduce the time consumed by the function calls. It...

Golang Gin Framework Middleware (I) Middleware analysis

Middleware parsing each middleware is independent, multiple middleware can form a chain structure, let request request pipelined interception processing. In addition to the built-in middleware r := gin.Default() in the logging middleware Logger() and

Search
About
mo4tech.com (Moment For Technology) is a global community with thousands techies from across the global hang out!Passionate technologists, be it gadget freaks, tech enthusiasts, coders, technopreneurs, or CIOs, you would find them all here.