DEV Community

Go

A statically typed, compiled programming language designed at Google

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
The Pipeline Pattern in Go: Composing Stages With Channels

The Pipeline Pattern in Go: Composing Stages With Channels

Comments
6 min read
Writing Go Doc Comments That godoc Renders the Way You Meant

Writing Go Doc Comments That godoc Renders the Way You Meant

Comments
7 min read
Package-Level State in Go: The Hidden Global That Wrecks Tests

Package-Level State in Go: The Hidden Global That Wrecks Tests

Comments
7 min read
Go Error Strings: Lowercase, No Punctuation, and Why It Matters

Go Error Strings: Lowercase, No Punctuation, and Why It Matters

Comments
6 min read
Don't panic in a Go Library: Return the Error Instead

Don't panic in a Go Library: Return the Error Instead

Comments
6 min read
Context as the First Parameter: The Go Convention and Its Reasons

Context as the First Parameter: The Go Convention and Its Reasons

Comments
6 min read
iota in Go: Enums, Bit Flags, and the Traps Beginners Hit

iota in Go: Enums, Bit Flags, and the Traps Beginners Hit

1
Comments 2
5 min read
Every tutorial tells you to add .env to .gitignore. That's not enough.

Every tutorial tells you to add .env to .gitignore. That's not enough.

Comments
2 min read
Effective Go in 2026: The Idioms That Still Decide Good Go Code

Effective Go in 2026: The Idioms That Still Decide Good Go Code

Comments
7 min read
Accept Interfaces, Return Structs: The Go Idiom, Correctly Applied

Accept Interfaces, Return Structs: The Go Idiom, Correctly Applied

Comments
6 min read
Variadic Functions and the append(s, more...) Spread in Go: The Gotchas

Variadic Functions and the append(s, more...) Spread in Go: The Gotchas

Comments
7 min read
Go Maps Iterate in Random Order on Purpose. Here Is How to Handle It

Go Maps Iterate in Random Order on Purpose. Here Is How to Handle It

Comments
6 min read
Build Constraints in Go: //go:build and Conditional Compilation

Build Constraints in Go: //go:build and Conditional Compilation

Comments
7 min read
Using defer to Modify a Named Return in Go (Carefully)

Using defer to Modify a Named Return in Go (Carefully)

Comments
6 min read
go:generate in Go: Code Generation Without a Build System

go:generate in Go: Code Generation Without a Build System

Comments
7 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.