Go
69 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 4.4 Golang Memory Leakshistorical
Memory leaks, root references, goroutine leaks, non-runtime memory, analysis workflow, examples, and references.
- 4.5 tracehistorical
1. Usage Steps: 1. Import package: import runtime/trace 2. Start analysis: trace.Start(file), stop analysis: trace.Stop() 3. Command-line analysis - go tool trace trace.out - 2. References
- consulhistorical
1. What it is A component for service registration and discovery 2. Building a local cluster 2.1. Download 2.2. Configuration files 2.2.1. Create directories 2.2.2. Configuration files server1 server2 server3 2.3. Start 2.4. Test Add service configuration Add service web UI 3. References
- etcdhistorical
1. Installation Download Releases · etcd-io/etcd Extract and configure environment variables 2. web UI Releases · evildecay/etcdkeeper 3. References etcd | Home
- hystrixhistorical
1. circuit A Go implementation of Hystrix for circuit breaking 2. Usage hystrix.go main.go 3. References
- microhistorical
1. Install Micro 1.1. Option 1 Download Releases · micro/micro Extract and configure environment variables 1.2. Option 2 Prerequisite: configure GOBIN Download source Install into GOBIN 2. References
- protobufhistorical
1. What it is An efficient serialization and deserialization format 1.1. Ordinary serialization 1.2. protobuf serialization 1.3. Comparison 2. Installation 3. Usage 4. References
- retryhistorical
1. What it is A failed remote-service call may succeed when attempted again 2. When retries are needed Network errors can be retried; logic errors do not need retries Long-lasting network failures should not be retried indefinitely Non-idempotent requests cannot be retried 3. Retry strategy 4. Go retry 5. References
- Go Environment Setuphistorical
Installing Go, configuring GOROOT/GOPATH/GOBIN/GOPROXY/GOPRIVATE, common Go commands, and IDE setup.