Commit dd296092 authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: fix codewalks

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5732056
parent b1b0b737
...@@ -72,17 +72,17 @@ func codewalk(w http.ResponseWriter, r *http.Request) { ...@@ -72,17 +72,17 @@ func codewalk(w http.ResponseWriter, r *http.Request) {
// A Codewalk represents a single codewalk read from an XML file. // A Codewalk represents a single codewalk read from an XML file.
type Codewalk struct { type Codewalk struct {
Title string `xml:"attr"` Title string `xml:"title,attr"`
File []string File []string `xml:"file"`
Step []*Codestep Step []*Codestep `xml:"step"`
} }
// A Codestep is a single step in a codewalk. // A Codestep is a single step in a codewalk.
type Codestep struct { type Codestep struct {
// Filled in from XML // Filled in from XML
Src string `xml:"attr"` Src string `xml:"src,attr"`
Title string `xml:"attr"` Title string `xml:"title,attr"`
XML string `xml:"innerxml"` XML string `xml:",innerxml"`
// Derived from Src; not in XML. // Derived from Src; not in XML.
Err error Err error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment