Liuyue | 刘悦

Rainbow Goddess Leaps in the Sky, Go Language Advanced Go Language High-performance Web Framework Iris Project Combat – Project Structure Optimization EP05

Original link: https://v3u.cn/a_id_246 Continuing the previous article, last time we completed the CURD (addition, deletion, modification and search) function of the user management module. The functional level is not very big, but there is a structural defect that is obvious, that is, the project structure is excessively coupled, and the coupling of the project ( […]

Rainbow Goddess Leaps in the Sky, Go Language Advanced Go Language High-performance Web Framework Iris Project Combat – Project Structure Optimization EP05 Read More »

The fairy guides the way, leads but does not send, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the background and difference of the use of New and Make functions in Golang EP16

Original link: https://v3u.cn/a_id_245 Golang has only 25 reserved keywords for the system, and more than 20 built-in functions in the system. In total, there are only about 50 keywords that need to be remembered. Throughout the programming universe, no one can surpass them. Some of these reserved keywords are “icing on the cake”, what is

The fairy guides the way, leads but does not send, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the background and difference of the use of New and Make functions in Golang EP16 Read More »

Rainbow Goddess Leaps in the Sky, Go Language Advanced High-performance Web Framework Iris Project Combat-User System EP03

Original link: https://v3u.cn/a_id_243 Continue the previous article. In the previous article, we have configured the database and template engine. Now we can write specific business code in the logic layer. Like most online platforms, the blog platform operates based on the user account system, so we need to Complete the CURD operation of the user

Rainbow Goddess Leaps in the Sky, Go Language Advanced High-performance Web Framework Iris Project Combat-User System EP03 Read More »

Change with the situation, move with the times, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of Go lang generics EP15

Original link: https://v3u.cn/a_id_242 In fact, generics are the most distinctive feature of Golang 1.18, but why do we have to delay to discuss generics? By analogy, we can imagine telling the first graders of primary school Wang Bo’s famous essay “Preface to the Pavilion of King Teng”. How likely are the primary school students to

Change with the situation, move with the times, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of Go lang generics EP15 Read More »

The road is like a blue sky, coroutines come to communicate, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of Go lang channel channel EP14

Original link: https://v3u.cn/a_id_241 As we all know, the scope of Golang is relatively strict, and the communication between data often depends on the transmission of parameters. However, if you want to communicate data among multiple coroutine tasks, you need the participation of channels. We can encapsulate the data as An object, and then pass the

The road is like a blue sky, coroutines come to communicate, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, the use of Go lang channel channel EP14 Read More »

Concurrency and parallelism, synchronization and asynchrony, Go lang1.18 introductory refined tutorial, by Bai Ding into Hongru, GoroutineEP13 of Go lang concurrent programming

Original link: https://v3u.cn/a_id_240 If Golang is the crown of static languages, then Goroutine is the diamond of concurrent programming. Goroutine is the core essence of the Go language design system. It is very lightweight. A Goroutine only occupies a few KB, and these few KB are enough for the Goroutine to run, which can support

Concurrency and parallelism, synchronization and asynchrony, Go lang1.18 introductory refined tutorial, by Bai Ding into Hongru, GoroutineEP13 of Go lang concurrent programming Read More »

Rainbow Goddess Leaps in the Sky, Go Language Advanced Go Language High-performance Web Framework Iris Project Practice-Template and Database EP02

Original link: https://v3u.cn/a_id_239 The book is connected to the last time. Last time, we built the project entry file and configured the routing system. Then we can configure the template of the project. Here we use the template engine built in Iris. In fact, using a template engine does not mean that End coupling, the

Rainbow Goddess Leaps in the Sky, Go Language Advanced Go Language High-performance Web Framework Iris Project Practice-Template and Database EP02 Read More »

After all, Qianshan Quncui could not survive the fire in August, and BYD’s new energy vehicles ignited spontaneously. Some issues need to be clarified, and some situations need to be understood.

Original link: https://v3u.cn/a_id_238 On August 16, 2022, a high-end model “Qianshan Cui” of a certain brand in Langzhong City, Sichuan Province spontaneously ignited. The owner of the car released a video saying that the car had just driven out of the garage without exposure to the sun or any collision. Spontaneous combustion, see also spontaneous

After all, Qianshan Quncui could not survive the fire in August, and BYD’s new energy vehicles ignited spontaneously. Some issues need to be clarified, and some situations need to be understood. Read More »

Ten Billions of Data Ten Billions of Flowers, Kuruo Ganges River Sand and Sand, Go lang1.18 Introductory Refinement Tutorial, from Bai Ding to Hongru, Go lang database operation practice EP12

Original link: https://v3u.cn/a_id_237 Golang can operate the database through the Gorm package. The so-called ORM is ObjectRelationalMapping (data relational mapping). To put it bluntly, it is to operate the row objects or table objects of the database through a schematized grammar. Compared with the relatively flexible and complex SQL statements, ORM is easy to use.

Ten Billions of Data Ten Billions of Flowers, Kuruo Ganges River Sand and Sand, Go lang1.18 Introductory Refinement Tutorial, from Bai Ding to Hongru, Go lang database operation practice EP12 Read More »

Rainbow Goddess Leaps in the Sky, Go language advanced Go language high-performance web framework Iris project combat – project entry and routing EP01

Original link: https://v3u.cn/a_id_236 From the previous book, we have installed the Iris framework, built the Iris project, and configured the real-time compilation of the fresh automatic monitoring project. Now let’s take a look at the basic functions of Iris, how to write the project entry file and configure the routing system. Project Entry In fact,

Rainbow Goddess Leaps in the Sky, Go language advanced Go language high-performance web framework Iris project combat – project entry and routing EP01 Read More »

People who are not saints and sages can do nothing, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, Go lang error handling mechanism EP11

Original link: https://v3u.cn/a_id_235 People are not sages and sages, and whoever can have no faults, if they have, they should correct them, and if they do not, they will be encouraged. At the programming language level, there are generally two schools of error handling methods, namely the exception capture mechanism represented by Python (try….catch); and

People who are not saints and sages can do nothing, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, Go lang error handling mechanism EP11 Read More »

Fast as lightning, fast as wind, rainbow goddess leaps in the sky, Go language high-performance web framework Iris project combat – initialization project ep00

Original link: https://v3u.cn/a_id_234 In the world of GolangWeb programming, high performance means nothing, but high performance must be called Iris. The name of the rainbow goddess is resounding all over the world, and the name moves all corners of the world. No one can match the fast word alone. Even Gin, who is known for

Fast as lightning, fast as wind, rainbow goddess leaps in the sky, Go language high-performance web framework Iris project combat – initialization project ep00 Read More »

Detailed process control, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, Go lang process structure detailed EP09

Original link: https://v3u.cn/a_id_232 The process structure refers to how the program logic is executed, and furthermore, the sequence in which the program executes the logic. As we all know, the whole program is executed from top to bottom, but sometimes, it is not just as simple as executing from top to bottom. Generally speaking, there

Detailed process control, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, Go lang process structure detailed EP09 Read More »