diff options
| author | Karel Pazdera <pazderak@gmail.com> | 2017-08-24 00:36:28 +0200 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-08-24 00:55:59 +0000 |
| commit | 6e9e9dfa46e032657af06aaea669e4d2264cb79e (patch) | |
| tree | 968364302d390e72a92a37b87cf99dcf10c85d18 /src/encoding/xml/atom_test.go | |
| parent | 77b4beba2fd892a3f8e9da527fdad031f6ecc613 (diff) | |
| download | go-6e9e9dfa46e032657af06aaea669e4d2264cb79e.tar.xz | |
encoding/xml: improve package based on the suggestions from metalinter
Existing code in encoding/xml packages contains code which breaks
various linter rules (comments, constant and variable naming, variable
shadowing, etc).
Fixes #21578
Change-Id: Id4bd9a9be6d5728ce88fb6efe33030ef943c078c
Reviewed-on: https://go-review.googlesource.com/58210
Reviewed-by: Sam Whited <sam@samwhited.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/xml/atom_test.go')
| -rw-r--r-- | src/encoding/xml/atom_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/xml/atom_test.go b/src/encoding/xml/atom_test.go index a71284312a..f394dab6f0 100644 --- a/src/encoding/xml/atom_test.go +++ b/src/encoding/xml/atom_test.go @@ -12,20 +12,20 @@ var atomValue = &Feed{ Link: []Link{{Href: "http://example.org/"}}, Updated: ParseTime("2003-12-13T18:30:02Z"), Author: Person{Name: "John Doe"}, - Id: "urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", + ID: "urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", Entry: []Entry{ { Title: "Atom-Powered Robots Run Amok", Link: []Link{{Href: "http://example.org/2003/12/13/atom03"}}, - Id: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a", + ID: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a", Updated: ParseTime("2003-12-13T18:30:02Z"), Summary: NewText("Some text."), }, }, } -var atomXml = `` + +var atomXML = `` + `<feed xmlns="http://www.w3.org/2005/Atom" updated="2003-12-13T18:30:02Z">` + `<title>Example Feed</title>` + `<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>` + |
