~/talk

Rethinking Errors in Go

Talkat dotGo 2017 · on Monday, 2017-11-06· [go]
slides:none on file

Example shows copying a reader to a Google Cloud Storage file atomically and reveals that the naive defer-close-with-error pattern breaks on panic and on ignored close errors, growing the code from about six lines into much more. The uploader-provided burner package burner package (called air-sea in the transcript) introduces a unified error variable that tracks regular errors and panics, preserves defer semantics, and yields code that looks like the original idiom while surfacing the close error for retries.

AI-written summary · about

  1. 0:00Start
  2. 0:18Rethinking Errors and Go
  3. 1:13Handle the Panic
  4. 3:01Relation between Error and Panic
~/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.