LEFT | RIGHT |
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 Loading... |
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 } |
LEFT | RIGHT |