mirror of
https://github.com/golang/go
synced 2024-11-25 21:07:56 -07:00
53440da835
- the first HTML comment in those files is extracted as page title when serving them - lib/godoc.html is top-level template for all pages served - experimented a bit with package documentation layout (feedback welcome) - various related cleanups TODO: - The / page (doc/root.html) content repeats links that are in the navigation bar. It needs to be cleaned up. R=rsc DELTA=826 (86 added, 692 deleted, 48 changed) OCL=35230 CL=35245
79 lines
741 B
Plaintext
79 lines
741 B
Plaintext
{.section PDoc}
|
|
PACKAGE
|
|
|
|
package {PackageName}
|
|
import "{ImportPath}"
|
|
{.section Doc}
|
|
|
|
{@}
|
|
{.end}
|
|
{.section Consts}
|
|
|
|
CONSTANTS
|
|
|
|
{.repeated section @}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.end}
|
|
{.section Vars}
|
|
|
|
VARIABLES
|
|
|
|
{.repeated section @}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.end}
|
|
{.section Funcs}
|
|
|
|
FUNCTIONS
|
|
|
|
{.repeated section @}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.end}
|
|
{.section Types}
|
|
|
|
TYPES
|
|
|
|
{.repeated section @}
|
|
{Decl}
|
|
{Doc}
|
|
{.repeated section Consts}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.repeated section Vars}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.repeated section Factories}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.repeated section Methods}
|
|
{Decl}
|
|
{Doc}
|
|
{.end}
|
|
{.end}
|
|
{.end}
|
|
{.section Bugs}
|
|
|
|
BUGS
|
|
|
|
{.repeated section @}
|
|
{@}
|
|
{.end}
|
|
{.end}
|
|
{.end}
|
|
{.section Dirs}
|
|
|
|
SUBDIRECTORIES
|
|
|
|
{.repeated section @}
|
|
{Name}
|
|
{.end}
|
|
{.end}
|