mirror of
https://github.com/golang/go
synced 2024-11-12 03:00:22 -07:00
godoc: fix codewalks
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5732056
This commit is contained in:
parent
b1b0b73738
commit
dd29609244
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user