~/talk

Operationalising Golangci-lint

Talkat GopherCon India 2024 · 2024-11-11..11-13· [testing, go]
links:none on file
slides:none on file

Shows concrete bug catches: pointer misuse with errors.As, url.Query returning a copy, and missing rows.Err() that hides deadline/cancel errors. Demonstrates running golangci-lint with linters like staticcheck to find these issues, and using a Google sheet that generates config (sheet last updated for v1.61) to tune which checks to enable. Notes there are more than 100 linters with 40+ duplicated checks and recommends using golangci-lint’s new-from-rev flag to roll fixes in gradually.

AI-written summary · about

  1. 0:00Introduction to linters
  2. 3:13Linters catch tricky bugs
  3. 9:19Why use golangci-lint
  4. 13:57Configuring golangci-lint
  5. 16:46Fixing issues iteratively
  6. 19:35Q&A session
~/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.