OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [encoding/] [xml/] [atom_test.go] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
package xml
6
 
7
var atomValue = &Feed{
8
        XMLName: Name{"http://www.w3.org/2005/Atom", "feed"},
9
        Title:   "Example Feed",
10
        Link:    []Link{{Href: "http://example.org/"}},
11
        Updated: ParseTime("2003-12-13T18:30:02Z"),
12
        Author:  Person{Name: "John Doe"},
13
        Id:      "urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6",
14
 
15
        Entry: []Entry{
16
                {
17
                        Title:   "Atom-Powered Robots Run Amok",
18
                        Link:    []Link{{Href: "http://example.org/2003/12/13/atom03"}},
19
                        Id:      "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
20
                        Updated: ParseTime("2003-12-13T18:30:02Z"),
21
                        Summary: NewText("Some text."),
22
                },
23
        },
24
}
25
 
26
var atomXml = `` +
27
        `` +
28
        `Example Feed` +
29
        `urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6` +
30
        `` +
31
        `2003-12-13T18:30:02Z` +
32
        `John Doe` +
33
        `` +
34
        `Atom-Powered Robots Run Amok` +
35
        `urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a` +
36
        `` +
37
        `2003-12-13T18:30:02Z` +
38
        `` +
39
        `Some text.` +
40
        `` +
41
        ``
42
 
43
func ParseTime(str string) Time {
44
        return Time(str)
45
}
46
 
47
func NewText(text string) Text {
48
        return Text{
49
                Body: text,
50
        }
51
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.