Month: April 2026
-
Post Views: 62 1. What kind of passport do you have now? The application is: ordinary passport (private passport) 2. How to handle (the most recommended)✅ Method: online reservation + offline processing (mainstream) 3. The first step: make an appointment, WeChat applet: Immigration Bureau 12367, Chinese citizen service – on-site certificate appointment – choose to apply for an outlet. as…
-
Post Views: 115 As a basic exercise for the entry of Go language, the use of MAPS (mapping) is one of the key knowledge points, and word counting exercise is a classic case of consolidating MAPS usage. This article will record in detail the implementation process, core ideas, code analysis, and key knowledge points involved in the exercise. 1. Description…
-
Post Views: 114 The background When writing a technical blog with a WordPress block editor (Gutenberg), I often need to include multiple code blocks in one article, such as: SQL query (SQL) Go sample code (GO) PHP code (PHP) Description text (Text) Usually, an article will contain about 10 code blocks in combination. This kind of content was very stable…
-
Post Views: 90 Recently, when I was doing the slices practice of the official go to the go, I encountered a series of dependencies download and running errors, and after tossing, I finally succeeded in running through. I have sorted out the complete stepping process and solutions, hoping to help those who practice Go Tour locally like me, and avoid…
-
Post Views: 64 1. I found that readme.md is normal in VS code, but in github, the format is messed up. How to solve it? Figure 1, Figure 2 2. Reason: If there is no “` package, github will directly ‘flatten’; the title is not separated by blank lines, which does not meet the markdown specification. Reorganize into standard GitHub…
-
Post Views: 40 1. There are 10,000 parameters in the IN condition (the upper limit of the product needs to be 10,000), resulting in a long query time, and the interface response timeout. as shown in Figure 1 2. When the number of parameters of PLAT_ORDER_ID is reduced from 10000 to 5, the interface response does not time out, and…
-
Post Views: 44 1. When learning the official Go tutorial a Tour of Go, I encountered a very classic exercise:Implement a square root function sqrt(x). as shown in Figure 1 This exercise involves not only Go’s loops and functions, but also introduces a very important numerical calculation method:Newton iteration method (Newtons method). This article will demonstrate how to get from…
-
Post Views: 33 1. In VS Code Ctrl + S, the file is restored to the previous step, not the expected save file Before modification: After modification: After Ctrl + S : 2. Do a key check first, open the Visual Studio Code settings: press: Ctrl + , search: format on save to see if it is enabled: editor: format…
-
Post Views: 31 1. In VS Code, Go reports an error: Main redeclared in this block. The reason is that there are multiple main functions in the directory. as shown in Figure 1 2. Reorganize an exercise directory structure scheme of A Tour of Go to ensure that each exercise can run go run main.go independently, and there will be…
-
Post Views: 72 1. Reference:Install Hyperf under Docker in WSL-Ubuntu. Now startup fails:[ERROR]RedisException: Connection refused. as shown in Figure 1 2. The hyperf connection redis fails, and the high probability is caused by one of the following three (redis is not started / the address is wrong / the port is not connected). I am now in the local development…
