Go
64 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 4.4 Golang Memory Leakshistorical
A goroutine that does not exit as intended may remain until the program ends. These notes use this problem to examine Go memory leaks and troubleshooting.
- 4.5 tracehistorical
Runtime/trace records Go execution traces. These notes start with importing the package and collecting data, then describe viewing the results.
- consulhistorical
Consul provides service registration and discovery. These notes include server and client configuration and examples of registration from Go programs.
- etcdhistorical
These notes cover downloading and configuring etcd, followed by basic client usage through Go examples.
- hystrixhistorical
These notes record usage and implementation of a Go Hystrix library, starting with circuit breaking for failed calls and related fault handling.
- microhistorical
These notes record Micro installation and environment setup, followed by its use in Go microservice examples.
- protobufhistorical
Protobuf provides efficient data serialization and deserialization. These notes use message definitions and code examples to show its usage in Go.
- retryhistorical
A failed remote call may succeed on another attempt. These notes distinguish network from logical errors to examine when retries are appropriate.
- rpchistorical
Server and client code examples demonstrate Go RPC calls and how both sides organize interfaces and data.
- Go Environment Setuphistorical
A Go environment involves installation paths, workspace settings, and modules. These notes record configuration through Windows, Linux, and go env.