Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
094732f7
Commit
094732f7
authored
Apr 11, 2010
by
Christopher Wedgwood
Committed by
Rob Pike
Apr 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godoc: change od.Dir -> os.FileInfo in comments
R=gri, r CC=golang-dev, rsc
https://golang.org/cl/819042
parent
adb3b863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/cmd/godoc/godoc.go
src/cmd/godoc/godoc.go
+2
-2
No files found.
src/cmd/godoc/godoc.go
View file @
094732f7
...
@@ -782,7 +782,7 @@ func paddingFmt(w io.Writer, x interface{}, format string) {
...
@@ -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) {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment