~/talk

Idiomatic Go Tells a Story

Talkat GopherCon 2023 · 2023-09-26..09-29· [go, career-development]
links:none on file
slides:none on file

A concrete practice for turning good Go into idiomatic Go: arrange packages as horizontal packages by placing type definitions next to their methods instead of a shared model or utils package, name functions by verbs then infer the noun, prefer short receivers like t, collapse single‑use variables into one line, and put interfaces in the caller package so the consumer owns the interface. These steps reduce noise, make tests and refactors easier, and let packages swap implementations without rewrites.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Meaningful packages
  3. 3:16Story outline and structure
  4. 6:09Naming Go types
  5. 8:15Paragraph structure in functions
  6. 12:28Single-use variables problem
  7. 15:19Refactoring codebases
  8. 16:42Consumer-owned interfaces
  9. 19:09Hero’s journey in Go
  10. 20:33Conclusion and key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.