~/talk

Using and Writing Go Analyses

Talkat GoLab 2019 · 2019-10-20..10-22· [go]
slides:none on file

The new analysis framework golang.org/x/tools/go/analysis provides a reusable Analyzer value, an Inspect-based traversal and types.Info mapping, and a singlechecker main so you can build a command-line checker; example analyzer detects cmp.Equal called with mismatched argument types, reports Diagnostics, uses facts to tag functions and offers suggested fixes that editors via gopls apply as quick fixes, and includes a testing harness for verifier tests.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42What are analyses
  3. 6:15Vet and Static Check
  4. 7:15Writing an Analysis
  5. 15:39Steps to Write an Analysis
  6. 16:09Facts
  7. 18:02Fact
  8. 19:31Suggested fixes
  9. 24:01Pointer to
  10. 26:24Report with fixes
  11. 26:58Command line tool
  12. 27:57Go Please
  13. 29:06Library Specific Analyzer
~/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.