Go
64 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Go Language Basicshistorical
Go's basic syntax requires attention to variable scope in concurrent code. These notes begin with loop-variable examples and record practical language issues.
- Learning Gohistorical
Go is a statically typed compiled language. These notes connect its characteristics with environment setup, basic syntax, and runtime topics.
- WaitGrouphistorical
WaitGroup lets a goroutine wait for other goroutines to finish, using a counter to track outstanding work.
- cgohistorical
Using cgo on Windows requires a toolchain such as MSYS2 and GCC. These notes record setup steps and Go-to-C usage.
- dlvhistorical
These notes record Delve commands for debugging Go programs, including tests and main programs.
- go.modhistorical
These notes record go.mod and Go module management through commands and configuration examples for project dependencies.
- godochistorical
Godoc can serve Go documentation locally for viewing in a browser. These notes record the startup command and local address.
- httphistorical
Go sends requests through helpers such as http.Get, Post, and PostForm, backed by Client. These notes continue with HTTP client and server usage.
- iohistorical
Go I/O operations involve packages such as io and os. These notes organize their interfaces through cross-platform file access and error handling.
- packagehistorical
Packages organize Go source code. These notes use source and test files to record package definitions, imports, and usage.