summaryrefslogtreecommitdiff
path: root/src/cmd/godoc/godoc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/godoc/godoc.go')
-rw-r--r--src/cmd/godoc/godoc.go52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go
index c6438245e..5b85af870 100644
--- a/src/cmd/godoc/godoc.go
+++ b/src/cmd/godoc/godoc.go
@@ -689,13 +689,13 @@ func urlFmt(w io.Writer, x interface{}, format string) {
// The strings in infoKinds must be properly html-escaped.
var infoKinds = [nKinds]string{
PackageClause: "package clause",
- ImportDecl: "import decl",
- ConstDecl: "const decl",
- TypeDecl: "type decl",
- VarDecl: "var decl",
- FuncDecl: "func decl",
- MethodDecl: "method decl",
- Use: "use",
+ ImportDecl: "import decl",
+ ConstDecl: "const decl",
+ TypeDecl: "type decl",
+ VarDecl: "var decl",
+ FuncDecl: "func decl",
+ MethodDecl: "method decl",
+ Use: "use",
}
@@ -762,20 +762,20 @@ func localnameFmt(w io.Writer, x interface{}, format string) {
var fmap = template.FormatterMap{
- "": textFmt,
- "html": htmlFmt,
- "html-esc": htmlEscFmt,
+ "": textFmt,
+ "html": htmlFmt,
+ "html-esc": htmlEscFmt,
"html-comment": htmlCommentFmt,
- "url-pkg": urlFmt,
- "url-src": urlFmt,
- "url-pos": urlFmt,
- "infoKind": infoKindFmt,
- "infoLine": infoLineFmt,
- "infoSnippet": infoSnippetFmt,
- "padding": paddingFmt,
- "time": timeFmt,
- "dir/": dirslashFmt,
- "localname": localnameFmt,
+ "url-pkg": urlFmt,
+ "url-src": urlFmt,
+ "url-pos": urlFmt,
+ "infoKind": infoKindFmt,
+ "infoLine": infoLineFmt,
+ "infoSnippet": infoSnippetFmt,
+ "padding": paddingFmt,
+ "time": timeFmt,
+ "dir/": dirslashFmt,
+ "localname": localnameFmt,
}
@@ -828,12 +828,12 @@ func servePage(c *http.Conn, title, query string, content []byte) {
_, ts := fsTree.get()
d := Data{
- Title: title,
- PkgRoots: fsMap.PrefixList(),
+ Title: title,
+ PkgRoots: fsMap.PrefixList(),
Timestamp: uint64(ts) * 1e9, // timestamp in ns
- Query: query,
- Menu: nil,
- Content: content,
+ Query: query,
+ Menu: nil,
+ Content: content,
}
if err := godocHTML.Execute(&d, c); err != nil {
@@ -935,7 +935,7 @@ func redirect(c *http.Conn, r *http.Request) (redirected bool) {
// textExt[x] is true if the extension x indicates a text file, and false otherwise.
var textExt = map[string]bool{
".css": false, // must be served raw
- ".js": false, // must be served raw
+ ".js": false, // must be served raw
}