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:
parent
adb3b863c9
commit
094732f7eb
@ -782,7 +782,7 @@ func paddingFmt(w io.Writer, x interface{}, format string) {
|
|||||||
|
|
||||||
// Template formatter for "time" format.
|
// Template formatter for "time" format.
|
||||||
func timeFmt(w io.Writer, x interface{}, format string) {
|
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()))
|
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
|
Title string
|
||||||
Subtitle string
|
Subtitle string
|
||||||
PkgRoots []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
|
Query string
|
||||||
Version string
|
Version string
|
||||||
Menu []byte
|
Menu []byte
|
||||||
|
Loading…
Reference in New Issue
Block a user