Tag

GOPATH

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Jan 22, 2025 · Backend Development

10 Essential Go Practices to Write Flexible, Maintainable Code

This article presents ten practical Go programming techniques—from using a single GOPATH and wrapping for‑select loops to defining custom types, improving enum handling with iota, and encapsulating repetitive logic with context helpers—aimed at building flexible, readable, and easily maintainable applications.

Code organizationConcurrencyGOPATH
0 likes · 14 min read
10 Essential Go Practices to Write Flexible, Maintainable Code
High Availability Architecture
High Availability Architecture
Dec 15, 2021 · Backend Development

Understanding Go Modules: From GOPATH to Modern Dependency Management

This article explains the evolution of Go's development workflow from the legacy GOPATH mode to the modern Go Modules system, details version‑specific changes, answers common migration questions, and provides a step‑by‑step tutorial with code examples for creating, testing, and managing Go modules in production projects.

GOPATHGobackend development
0 likes · 13 min read
Understanding Go Modules: From GOPATH to Modern Dependency Management
Tencent Cloud Developer
Tencent Cloud Developer
Nov 22, 2021 · Backend Development

Understanding Go Modules: Evolution, Usage, and Best Practices

The article traces Go’s shift from GOPATH to Go Modules—detailing their history, migration steps, practical commands, and best‑practice tips such as using replace directives, managing go.mod and go.sum, and emphasizing why teams should adopt modules now for reliable dependency handling, security, and developer efficiency.

GOPATHGobackend development
0 likes · 15 min read
Understanding Go Modules: Evolution, Usage, and Best Practices