Tagged articles

nil interface

3 articles · Page 1 of 1
Golang Shines
Golang Shines
Jun 11, 2026 · Fundamentals

8 Subtle Go Language Details You Might Not Know

This article walks through eight often‑overlooked Go features—including direct integer iteration in Go 1.22, the ~T generic constraint, UTF‑8 string length pitfalls, nil‑interface quirks, nil‑pointer method calls, proper timer usage with contexts, zero‑size struct semaphores, and the JSON "-" tag—showing concrete code examples and the reasoning behind each behavior.

ContextGoempty struct
0 likes · 9 min read
8 Subtle Go Language Details You Might Not Know
Golang Shines
Golang Shines
Feb 15, 2026 · Fundamentals

8 Subtle Go Language Details You Might Not Know

This article walks through eight often‑overlooked Go language nuances—ranging from direct integer iteration and generic type constraints to UTF‑8 string length, nil interface pitfalls, safe nil method calls, time.After resource leaks, empty‑struct semaphores, and JSON field omission—showing concrete code examples, common mistakes, and recommended practices.

GoUTF-8empty struct
0 likes · 9 min read
8 Subtle Go Language Details You Might Not Know
FunTester
FunTester
Mar 13, 2025 · Backend Development

When to Use Value vs Pointer Receivers and Other Go Pitfalls You Must Avoid

This article examines common Go mistakes—including choosing between value and pointer receivers, misusing unnamed or named return values, returning nil interfaces, passing filenames instead of readers, and defer parameter evaluation—provides clear explanations, real‑world examples, and best‑practice recommendations to write more reliable Go code.

Gobest practicesdefer
0 likes · 18 min read
When to Use Value vs Pointer Receivers and Other Go Pitfalls You Must Avoid