sqlc

FreeGogithub.com

Best for: Type-safe SQL without an ORM

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

Alternatives to sqlc

See all 9 →

A Tour of Go

Your first day with Go
Free

The official interactive Go introduction: run and edit code in the browser while it walks through syntax, methods, interfaces and concurrency.

Go by Example

Looking up how to do X in Go
Free

Short annotated Go programs, one per topic, from basics to goroutines, channels and testing.

Effective Go

Writing Go the way the Go team does
Free

The Go team's guide to writing idiomatic Go: naming, formatting, errors, interfaces and concurrency.