1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:54:49 -07:00

godoc: change od.Dir -> os.FileInfo in comments

R=gri, r
CC=golang-dev, rsc
https://golang.org/cl/819042
This commit is contained in:
Christopher Wedgwood 2010-04-11 10:17:45 -07:00 committed by Rob Pike
parent adb3b863c9
commit 094732f7eb

View File

@ -782,7 +782,7 @@ func paddingFmt(w io.Writer, x interface{}, format string) {
// Template formatter for "time" format.
func timeFmt(w io.Writer, x interface{}, format string) {
// note: os.Dir.Mtime_ns is in uint64 in ns!
// note: os.FileInfo.Mtime_ns is in uint64 in ns!
template.HTMLEscape(w, []byte(time.SecondsToLocalTime(int64(x.(uint64)/1e9)).String()))
}
@ -880,7 +880,7 @@ func servePage(c *http.Conn, title, subtitle, query string, content []byte) {
Title string
Subtitle string
PkgRoots []string
Timestamp uint64 // int64 to be compatible with os.Dir.Mtime_ns
Timestamp uint64 // int64 to be compatible with os.FileInfo.Mtime_ns
Query string
Version string
Menu []byte