Tag: VS Code
-
Post Views: 41 The background of the problem 2. The first pit: depend on download failure (502 bad gateway), you can refer to:GO TOUR slicing exercise to run the full record of the pit on the pit (from error report to successful operation) as shown in Figure 1 Error message: Error cause: Solution: 3. The second pit: the IDE still…
-
Post Views: 63 1. Background: Why do this environment In order to learn AI programming tools (such as Tongyi Spirit Code), I am going to implement a ‘Music Alarm Clock’ small project.Before starting coding, I set up a reusable python dev container development environment. 2. Description of the technology stack 3. Project catalog structure (core focus) music-alarm/├── .devcontainer/│ └── devcontainer.json├──…
-
Post Views: 63 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: 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: 42 1. Reference: Build a RESTful API (go.dev) with Go and Ginhttps://go.dev/doc/tutorial/web-service-gin— Go official tutorial for building simple web services with GIN. 2. Install Go. Docker Compose One-click startup (refer to Hyperf project). I want to ‘write a good configuration, a command starts the entire development environment’, which is most convenient to use docker-compose.yml, which is almost the…