Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(143)

Unified Diff: src/pkg/encoding/xml/xml.go

Issue 12751045: code review 12751045: encoding/xml: support generic encoding interfaces (Closed)
Patch Set: diff -r 0a4959c5402a https://code.google.com/p/go/ Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/encoding/xml/read.go ('k') | src/pkg/go/build/deps_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/encoding/xml/xml.go
===================================================================
--- a/src/pkg/encoding/xml/xml.go
+++ b/src/pkg/encoding/xml/xml.go
@@ -67,6 +67,11 @@
return e
}
+// End returns the corresponding XML end element.
+func (e StartElement) End() EndElement {
+ return EndElement{e.Name}
+}
+
// An EndElement represents an XML end element.
type EndElement struct {
Name Name
« no previous file with comments | « src/pkg/encoding/xml/read.go ('k') | src/pkg/go/build/deps_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b