]> Cypherpunks repositories - gostls13.git/commit
godoc: pass *PageInfos instead of *token.FileSets in templates
authorRobert Griesemer <gri@golang.org>
Wed, 27 Mar 2013 01:28:16 +0000 (18:28 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 27 Mar 2013 01:28:16 +0000 (18:28 -0700)
commit12cf2ff00ba0a0816c1e572dae1476341f0bf3ed
tree6c62c4ea105865c6079043a0dfc9436f31824e01
parent50231fa19f7c88834edd95836dca95267ef8bb4f
godoc: pass *PageInfos instead of *token.FileSets in templates

- convert all formatters that require a *token.FileSet to
  consistenly use a *PageInfo as first argument instead
- adjust templates correspondingly
- fix outstanding bug from previous CL 8005044

Going forward, with this change the affected functions have
access to the full page "context" (PageInfo), not just the
respective file set. This will permit better context-dependent
formatting in the future.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7860049
lib/godoc/package.html
lib/godoc/package.txt
src/cmd/godoc/godoc.go
src/cmd/godoc/main.go