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
dd296092
Commit
dd296092
authored
Mar 04, 2012
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godoc: fix codewalks
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/5732056
parent
b1b0b737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/cmd/godoc/codewalk.go
src/cmd/godoc/codewalk.go
+6
-6
No files found.
src/cmd/godoc/codewalk.go
View file @
dd296092
...
...
@@ -72,17 +72,17 @@ func codewalk(w http.ResponseWriter, r *http.Request) {
// A Codewalk represents a single codewalk read from an XML file.
type
Codewalk
struct
{
Title
string
`xml:"
attr"`
File
[]
string
Step
[]
*
Codestep
Title
string
`xml:"title,
attr"`
File
[]
string
`xml:"file"`
Step
[]
*
Codestep
`xml:"step"`
}
// A Codestep is a single step in a codewalk.
type
Codestep
struct
{
// Filled in from XML
Src
string
`xml:"attr"`
Title
string
`xml:"attr"`
XML
string
`xml:"innerxml"`
Src
string
`xml:"
src,
attr"`
Title
string
`xml:"
title,
attr"`
XML
string
`xml:"
,
innerxml"`
// Derived from Src; not in XML.
Err
error
...
...
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