mirror of
https://github.com/golang/go
synced 2024-11-20 03:04:40 -07:00
godoc: update appinit.go, apply !appengine build constrain to main.go
R=adg, dsymonds CC=golang-dev https://golang.org/cl/5969063
This commit is contained in:
parent
951a97e42f
commit
96da953d86
@ -17,9 +17,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func serveError(w http.ResponseWriter, r *http.Request, relpath string, err error) {
|
func serveError(w http.ResponseWriter, r *http.Request, relpath string, err error) {
|
||||||
contents := applyTemplate(errorHTML, "errorHTML", err) // err may contain an absolute path!
|
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
servePage(w, relpath, "File "+relpath, "", "", contents)
|
servePage(w, Page{
|
||||||
|
Title: "File " + relpath,
|
||||||
|
Subtitle: relpath,
|
||||||
|
Body: applyTemplate(errorHTML, "errorHTML", err), // err may contain an absolute path!
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
// godoc crypto/block Cipher NewCMAC
|
// godoc crypto/block Cipher NewCMAC
|
||||||
// - prints doc for Cipher and NewCMAC in package crypto/block
|
// - prints doc for Cipher and NewCMAC in package crypto/block
|
||||||
|
|
||||||
|
// +build !appengine
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user