Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1204)

Delta Between Two Patch Sets: src/cmd/godoc/appinit.go

Issue 5711058: code review 5711058: godoc: support $GOPATH, simplify file system code (Closed)
Left Patch Set: diff -r ab23f67d6786 https://go.googlecode.com/hg/ Created 12 years ago
Right Patch Set: diff -r 8d4fd582202b https://go.googlecode.com/hg/ Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/godoc/package.html ('k') | src/cmd/godoc/codewalk.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build ignore 5 // +build ignore
6 6
7 package main 7 package main
8 8
9 // This file replaces main.go when running godoc under app-engine. 9 // This file replaces main.go when running godoc under app-engine.
10 // See README.godoc-app for details. 10 // See README.godoc-app for details.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 fs.Bind("/", NewZipFS(rc, zipFilename), "/", bindReplace) 45 fs.Bind("/", NewZipFS(rc, zipFilename), "/", bindReplace)
46 46
47 // initialize http handlers 47 // initialize http handlers
48 readTemplates() 48 readTemplates()
49 initHandlers() 49 initHandlers()
50 registerPublicHandlers(http.DefaultServeMux) 50 registerPublicHandlers(http.DefaultServeMux)
51 51
52 // initialize default directory tree with corresponding timestamp. 52 // initialize default directory tree with corresponding timestamp.
53 initFSTree() 53 initFSTree()
54 54
55 // initialize directory trees for user-defined file systems (-path flag) .
56 initDirTrees()
57
58 // Immediately update metadata. 55 // Immediately update metadata.
59 updateMetadata() 56 updateMetadata()
60 57
61 // initialize search index 58 // initialize search index
62 if *indexEnabled { 59 if *indexEnabled {
63 go indexer() 60 go indexer()
64 } 61 }
65 62
66 log.Println("godoc initialization complete") 63 log.Println("godoc initialization complete")
67 } 64 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b