~/talk

HTTP Routing Enhancements

Talkat GopherCon Europe 2024 · 2024-06-17..06-20· [go, web-platform]
slides:none on file

Go 1.22 extends http.ServeMux with methods and path wildcards, adds a request.PathValue accessor, supports trailing ... to match the rest of a path and a {$} marker to require a literal trailing slash, and treats HEAD as equivalent to GET. Precedence uses semantic set inclusion: a pattern that matches a strict subset wins; overlapping patterns cause a registration panic with a concrete conflicting string. Conflict checks run pairwise in linear time and use a literal-position index to avoid pathological O(n^2) behavior; the new implementation aims to be roughly as fast as the old one while remaining mostly backward compatible.

AI-written summary · about

  1. 0:00HTTP routing enhancements
  2. 5:17Routing precedence and conflicts
  3. 9:10Subset precedence rule
  4. 13:03Regex routing semantics
  5. 15:51HTTP routing performance
  6. 18:21Conflict detection in routing
  7. 20:13Pattern indexing for registration
  8. 22:00Backwards compatibility
  9. 23:43Routing features coverage
~/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.