1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:07:57 -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:
Shenghou Ma 2012-04-04 00:00:26 +08:00
parent 951a97e42f
commit 96da953d86
2 changed files with 7 additions and 2 deletions

View File

@ -17,9 +17,12 @@ import (
)
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)
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() {

View File

@ -23,6 +23,8 @@
// godoc crypto/block Cipher NewCMAC
// - prints doc for Cipher and NewCMAC in package crypto/block
// +build !appengine
package main
import (