aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2012-03-04 11:53:07 +1100
committerAndrew Gerrand <adg@golang.org>2012-03-04 11:53:07 +1100
commitdd29609244b72e57ebda3551eb84d4bed716f4bf (patch)
treecfb668bfcb30acaa3167e0cfe943296da062a900
parentb1b0b73738b4966a6d8f497d5ede03a6a51ee110 (diff)
downloadgo-dd29609244b72e57ebda3551eb84d4bed716f4bf.tar.gz
go-dd29609244b72e57ebda3551eb84d4bed716f4bf.zip
godoc: fix codewalks
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5732056
-rw-r--r--src/cmd/godoc/codewalk.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/godoc/codewalk.go b/src/cmd/godoc/codewalk.go
index 7edf324155..018259f7dc 100644
--- a/src/cmd/godoc/codewalk.go
+++ b/src/cmd/godoc/codewalk.go
@@ -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