Skip to content

Instantly share code, notes, and snippets.

@berfarah
Created October 1, 2018 21:21
Show Gist options
  • Save berfarah/0b52e1688afcee9358132b54737e3757 to your computer and use it in GitHub Desktop.
Save berfarah/0b52e1688afcee9358132b54737e3757 to your computer and use it in GitHub Desktop.
Iterative Optimization on Hot Paths: Planning it out: Wrangling Go interfaces
id := 5
var name string
err := db.QueryRowContext(ctx, "SELECT name FROM users WHERE id = ?", id).Scan(&name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment