~/talk

Write Less (Code), Generate More

Talkat GopherCon UK 2019 · 2019-08-21..08-23· [developer-experience, go]
links:none on file
slides:none on file

Argues that Go code generation reduces repeated boilerplate by example: builds a simple generator that uses go/packages and AST/type info to find all constants of a named integer type and emits a formatted String() method into a gen_ file via a text template and gofmt. Integrates generation into workflow with go generate and a go-generate wrapper that adds an artifact cache and dependency-aware ordering. The generator works but omits edge cases and optimizations.

AI-written summary · about

  1. 0:00Start
  2. 7:50automate the process of running code generators
  3. 12:38the abstract syntax tree
  4. 17:37create an output file
  5. 20:17integrate cogeneration
~/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.