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

Side by Side Diff: src/cmd/godoc/main.go

Issue 6112063: [release-branch.go1] cmd/godoc: update App Engine READM... (Closed)
Patch Set: diff -r 4be9b73d9911 https://code.google.com/p/go/ Created 11 years, 11 months 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:
View unified diff | Download patch
« no previous file with comments | « src/cmd/godoc/README.godoc-app ('k') | src/cmd/godoc/setup-godoc-app.bash » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 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 // godoc: Go Documentation Server 5 // godoc: Go Documentation Server
6 6
7 // Web server tree: 7 // Web server tree:
8 // 8 //
9 // http://godoc/ main landing page 9 // http://godoc/ main landing page
10 // http://godoc/doc/ serve from $GOROOT/doc - spec, mem, etc. 10 // http://godoc/doc/ serve from $GOROOT/doc - spec, mem, etc.
11 // http://godoc/src/ serve files from $GOROOT/src; .go gets pretty-pr inted 11 // http://godoc/src/ serve files from $GOROOT/src; .go gets pretty-pr inted
12 // http://godoc/cmd/ serve documentation about commands 12 // http://godoc/cmd/ serve documentation about commands
13 // http://godoc/pkg/ serve documentation about packages 13 // http://godoc/pkg/ serve documentation about packages
14 // (idea is if you say import "compress/zlib", you go to 14 // (idea is if you say import "compress/zlib", you go to
15 // http://godoc/pkg/compress/zlib) 15 // http://godoc/pkg/compress/zlib)
16 // 16 //
17 // Command-line interface: 17 // Command-line interface:
18 // 18 //
19 // godoc packagepath [name ...] 19 // godoc packagepath [name ...]
20 // 20 //
21 // godoc compress/zlib 21 // godoc compress/zlib
22 // - prints doc for package compress/zlib 22 // - prints doc for package compress/zlib
23 // godoc crypto/block Cipher NewCMAC 23 // godoc crypto/block Cipher NewCMAC
24 // - prints doc for Cipher and NewCMAC in package crypto/block 24 // - prints doc for Cipher and NewCMAC in package crypto/block
25 25
26 // +build !appengine
27
26 package main 28 package main
27 29
28 import ( 30 import (
29 "archive/zip" 31 "archive/zip"
30 "bytes" 32 "bytes"
31 "errors" 33 "errors"
32 _ "expvar" // to serve /debug/vars 34 _ "expvar" // to serve /debug/vars
33 "flag" 35 "flag"
34 "fmt" 36 "fmt"
35 "go/ast" 37 "go/ast"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 458 }
457 459
458 func (w *httpWriter) Header() http.Header { return w.h } 460 func (w *httpWriter) Header() http.Header { return w.h }
459 func (w *httpWriter) WriteHeader(code int) { w.code = code } 461 func (w *httpWriter) WriteHeader(code int) { w.code = code }
460 462
461 // disabledHandler serves a 501 "Not Implemented" response. 463 // disabledHandler serves a 501 "Not Implemented" response.
462 func disabledHandler(w http.ResponseWriter, r *http.Request) { 464 func disabledHandler(w http.ResponseWriter, r *http.Request) {
463 w.WriteHeader(http.StatusNotImplemented) 465 w.WriteHeader(http.StatusNotImplemented)
464 fmt.Fprint(w, "This functionality is not available via local godoc.") 466 fmt.Fprint(w, "This functionality is not available via local godoc.")
465 } 467 }
OLDNEW
« no previous file with comments | « src/cmd/godoc/README.godoc-app ('k') | src/cmd/godoc/setup-godoc-app.bash » ('j') | no next file with comments »

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