Overview
Write SQL queries in .sql files and sqlc generates type-safe Go code for them. Supports PostgreSQL, MySQL and SQLite.
Strengths
- Real SQL, checked at build time
- No runtime reflection
Drawbacks
- Dynamic queries are awkward
Best for: Type-safe SQL without an ORM
Write SQL queries in .sql files and sqlc generates type-safe Go code for them. Supports PostgreSQL, MySQL and SQLite.
The official interactive Go introduction: run and edit code in the browser while it walks through syntax, methods, interfaces and concurrency.
Short annotated Go programs, one per topic, from basics to goroutines, channels and testing.
The Go team's guide to writing idiomatic Go: naming, formatting, errors, interfaces and concurrency.