Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
4f340f50
Commit
4f340f50
authored
Jun 30, 2010
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godoc: canonicalize codewalk paths
R=rsc CC=golang-dev
https://golang.org/cl/1729046
parent
71675c6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
codewalk.html
lib/godoc/codewalk.html
+1
-1
codewalk.go
src/cmd/godoc/codewalk.go
+5
-0
No files found.
lib/godoc/codewalk.html
View file @
4f340f50
...
...
@@ -15,7 +15,7 @@
<div
id=
"code-area"
>
<div
id=
"code-header"
align=
"center"
>
<a
id=
"code-popout-link"
href=
""
target=
"_blank"
>
<img
title=
"View code in new window"
alt=
"Pop Out Code"
src=
"popout.png"
style=
"display: block; float: right;"
/>
<img
title=
"View code in new window"
alt=
"Pop Out Code"
src=
"
/doc/codewalk/
popout.png"
style=
"display: block; float: right;"
/>
</a>
<select
id=
"code-selector"
>
{.repeated section File}
...
...
src/cmd/godoc/codewalk.go
View file @
4f340f50
...
...
@@ -63,6 +63,11 @@ func codewalk(c *http.Conn, r *http.Request) {
return
}
// Canonicalize the path and redirect if changed
if
redirect
(
c
,
r
)
{
return
}
b
:=
applyTemplate
(
codewalkHTML
,
"codewalk"
,
cw
)
servePage
(
c
,
"Codewalk: "
+
cw
.
Title
,
""
,
""
,
b
)
}
...
...
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