-
Notifications
You must be signed in to change notification settings - Fork 0
/
leo.go
40 lines (38 loc) · 990 Bytes
/
leo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package rld
import "encoding/xml"
type LeoXML struct {
XMLName xml.Name `xml:"xml"`
Sectionlist struct {
Sectionsort string `xml:"sectionsort,attr"`
Section []struct {
SctTitle string `xml:"sctTitle,attr"`
Entry []struct {
Side []struct {
Lang string `xml:"lang,attr"`
Words struct {
Text string `xml:",chardata"`
Word []string `xml:"word"`
} `xml:"words"`
} `xml:"side"`
} `xml:"entry"`
} `xml:"section"`
} `xml:"sectionlist"`
Similar struct {
// Text string `xml:",chardata"`
Source string `xml:"source,attr"`
Side []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
Word []string `xml:"word"`
} `xml:"side"`
} `xml:"similar"`
Ffsynlist struct {
// Text string `xml:",chardata"`
Word string `xml:"word,attr"`
Side []struct {
// Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
Word []string `xml:"word"`
} `xml:"side"`
} `xml:"ffsynlist"`
}