~/talk

Things I Find Myself Repeating About Go

Talkat GopherConAU 2024 · 2024-11-06..11-08· [go]
slides:none on file

Practical, specific rules for production Go: concrete naming guidance (shortest name that captures purpose, package names that state what they provide), initialization patterns like initialize once and only once, use of helpers for decoding and testing (custom UnmarshalJSON for variant fields, dumpBody type with String for lazy eval), prefer guard clauses and keep to the left selection style over nested if/else, use main.run pattern and a worker group to start, monitor and gracefully stop goroutines as a unit.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:04The importance of naming in Go
  3. 10:56Initializing variables once
  4. 16:10Keep to the left pattern
  5. 19:43Using helpers for clarity
  6. 29:41Go routine management
  7. 33:12Summary and closing thoughts
~/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.