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.
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
go:generate in Go: Code Generation Without a Build System

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

1
Comments
7 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
Build Constraints in Go: //go:build and Conditional Compilation

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

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
Reflection in Go: The Few Times It Is Justified (and the Cost)

Reflection in Go: The Few Times It Is Justified (and the Cost)

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
panic and recover in Go: The 3 Times They Are Actually Correct

panic and recover in Go: The 3 Times They Are Actually Correct

Comments
7 min read
The comma-ok Idiom in Go: One Pattern, Four Places It Shows Up

The comma-ok Idiom in Go: One Pattern, Four Places It Shows Up

Comments
6 min read
Typed vs Untyped Constants in Go: The Rule That Prevents Overflow Bugs

Typed vs Untyped Constants in Go: The Rule That Prevents Overflow Bugs

Comments
6 min read
var _ Iface = (*T)(nil): The Go Compile-Time Interface Check You Should Use

var _ Iface = (*T)(nil): The Go Compile-Time Interface Check You Should Use

Comments
5 min read
String and []byte in Go: The Conversions That Quietly Allocate

String and []byte in Go: The Conversions That Quietly Allocate

Comments
6 min read
Go Struct Tags Beyond json: validate, db, and Writing Your Own

Go Struct Tags Beyond json: validate, db, and Writing Your Own

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