lib: Add short description to godoc headers.

The auto-generated doc.go file for cmdline tools is formatted
specially so that godoc will interpret each command as a header,
which gets automatically linked to a table of contents.  This
change adds the short description from each command or help
topic, to make the TOC more useful.

Note that godoc has heurisitics for what it considers an
appropriate header; e.g. if the line contains certain puncutation
it won't be extracted as a header.  For these cases we fall back
and only use the command path, since it's better to have a less
descriptive header than to have no header at all.

Also added LineWriter.ForceVerbatim, which lets us force verbatim
mode.  This is used to ensure the header line we generate isn't
wrapped into more than one line.

MultiPart: 2/3

Change-Id: I66b4555fdf281604d384f65a51accec4f1fff542
6 files changed
tree: f0341ae2520958d239bb943799a6d6007b281dc5
  1. buildinfo/
  2. cmdline/
  3. dbutil/
  4. envvar/
  5. host/
  6. metadata/
  7. netconfig/
  8. netstate/
  9. pubsub/
  10. textutil/
  11. toposort/
  12. vlog/
  13. .gitignore
  14. .godepcop
  15. AUTHORS
  16. CONTRIBUTORS
  17. LICENSE
  18. PATENTS
  19. README.md
  20. VERSION
README.md

This repository contains general purpose libraries used by the Vanadium project.