Using Failpoint for Fault Injection in Go

Using Failpoint for Fault Injection in Go

Recently, while looking at the TiDB source code, I found that it used failpoint for fault injection, which I found very interesting. It involves code generation and parsing the code AST tree for replacement to implement fault injection. I will also try to analyze it and learn how to parse the AST tree to generate … Read more

Using Go Http Retry Library for Reliable Requests

Using Go Http Retry Library for Reliable Requests

Learning About the HTTP Retry Library in Go Hello everyone! Today we will learn how to use a very practical HTTP retry library in Go—go-http-retry. In network programming, when sending HTTP requests, various issues may arise, such as unstable networks or server timeouts. At this point, the retry mechanism becomes particularly important. By using the … Read more

Mastering the Go-Http-Responder Library

Mastering the Go-Http-Responder Library

Learning Go: Mastering the Go-Http-Responder Library Hello everyone! Today we will learn about a very practical HTTP response library for Go—go-http-responder. This library helps us simplify the handling of HTTP responses and improve development efficiency. Whether you are a beginner just starting out or an enthusiast with some background, you will find it beneficial. Next, … Read more

Learn A Simple HTTP Responder Library in Go

Learn A Simple HTTP Responder Library in Go

Learn A Simple HTTP Responder Library In Go Hello everyone! Today I want to share a very practical knowledge point in Go language – Simple HTTP Responder Library. In modern development, building web applications is very common, and the HTTP protocol is the foundation for interacting with servers. By learning how to use a simple … Read more

Go HTTP Logger: An HTTP Logging Library

Go HTTP Logger: An HTTP Logging Library

HTTP Logging Library in Go: go-http-logger In today’s lesson, I will introduce you to a very practical Go library – go-http-logger. This library helps us log HTTP requests and responses, making it easier for us to debug and monitor. By using this library, we can better understand the application’s running state and promptly identify potential … Read more

Practical Skills: SPI Flash Programming Algorithm for Any MCU with SWD Interface

Practical Skills: SPI Flash Programming Algorithm for Any MCU with SWD Interface

Previously, I shared a document-based tutorial on creating an SPI Flash programming algorithm. However, feedback from users indicated that it was not very convenient to port to other microcontrollers. This post is created to facilitate the migration to various platforms. Application scenarios for the SPI Flash programming algorithm: 1. In an IDE environment, such as … Read more

Mastering Go’s Best Debugger Delve: A Comprehensive Guide

Mastering Go's Best Debugger Delve: A Comprehensive Guide

👉Introduction Delve is the most widely used debugger in Go. This article introduces debugging in Go based on Delve. If you are frustrated with log-based debugging, you might want to check this out. After reading the full article, you can also participate in the Lunar New Year red envelope cover lottery at the end! 👉Table … Read more

Refactoring a Go Project Makefile

Refactoring a Go Project Makefile

If you are not familiar with Makefile, I recommend reading Ruanyifeng’s article “Make Command Tutorial[1]“. This article will guide you to write a more elegant Makefile through a refactoring example, so let’s get started! Assuming there is a project named foo, developed in Golang and deployed on Docker, its Makefile is as follows: APP = … Read more

Taskfile vs Makefile: Which Is the Superior Build Tool?

Taskfile vs Makefile: Which Is the Superior Build Tool?

Follow us on WeChat: 「Wonderful Linux World」 Set as a 「Star」 to explore Linux every day! 1. What is Taskfile? Taskfile describes various execution tasks using YAML, and its core is written in Go; compared to Makefile, which uses tab-separated and bash-combined syntax, Taskfile appears more modern and user-friendly (though it may turn you into … Read more

Implementing Basic Functions of a Financial Trading Platform in C++

Implementing Basic Functions of a Financial Trading Platform in C++

1. Introduction In today’s digital financial era, online financial trading platforms are emerging like mushrooms after rain, becoming key channels for investment and capital flows. Behind these platforms, programming languages play a crucial supporting role. Among them, C++ occupies an indispensable position in the construction of financial platforms due to its excellent performance, efficient execution … Read more