diff options
| author | Russ Cox <rsc@golang.org> | 2021-02-24 10:22:57 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-03-12 19:58:07 +0000 |
| commit | a3455e4f5b6be252a86435a4ec3b7fdb1fe4185b (patch) | |
| tree | ba32ee98a884c617004ce08078564aaac14f21f2 /_content/doc/tutorial/call-module-code.html | |
| parent | b09c5abe0883aa251c228b10989a04f36178dd3a (diff) | |
| download | go-x-website-a3455e4f5b6be252a86435a4ec3b7fdb1fe4185b.tar.xz | |
internal/godoc: simplify, isolate pkg docs tree code
- IsGOROOT is always true (the only docs we serve)
- SummarizePackage is unused
- newDirectory is only called on the root with unlimited depth
- Name is redundant with Path
- Directory.Depth is unused
- only DirEntry is assigned to dirEntryOrFileInfo
- parallel walk is only needed for huge trees (GOROOT is not)
- separate entirely from Corpus
- pull new DocTree out of handlerServer
This will let us better separate the package doc tree from HTTP service
and from the general document server.
Change-Id: Iac667a0ff624306cdd535a33dd22dcb04062b46c
Reviewed-on: https://go-review.googlesource.com/c/website/+/296378
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to '_content/doc/tutorial/call-module-code.html')
0 files changed, 0 insertions, 0 deletions
