mirror of
https://github.com/golang/go
synced 2024-11-24 21:20:05 -07:00
godoc: fix missing name change
Fixes godoc text mode (i.e., URL?m=text). R=golang-dev, adg CC=golang-dev https://golang.org/cl/5545043
This commit is contained in:
parent
eac31c67a8
commit
45ca908f89
@ -44,7 +44,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{with .PDoc}}
|
{{with .PDoc}}
|
||||||
<h2 id="Overview">Overview</h2>
|
<h2 id="Overview">Overview</h2>
|
||||||
<!-- PackageName is printed as title by the top-level template -->
|
<!-- The package's Name is printed as title by the top-level template -->
|
||||||
{{if $.IsPkg}}
|
{{if $.IsPkg}}
|
||||||
<p><code>import "{{html .ImportPath}}"</code></p>
|
<p><code>import "{{html .ImportPath}}"</code></p>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
|
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
|
||||||
|
|
||||||
package {{.PackageName}}
|
package {{.Name}}
|
||||||
import "{{.ImportPath}}"
|
import "{{.ImportPath}}"
|
||||||
|
|
||||||
{{else}}COMMAND DOCUMENTATION
|
{{else}}COMMAND DOCUMENTATION
|
||||||
|
Loading…
Reference in New Issue
Block a user