-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserinfo.go
36 lines (34 loc) · 1.08 KB
/
userinfo.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
package xml
import "encoding/xml"
type UserList struct {
XMLName xml.Name `xml:"userlist"`
User []struct {
XMLName xml.Name `xml:"user"`
Username string `xml:"username,attr"`
ID uint `xml:"ID,attr"`
Realname struct {
XMLName xml.Name `xml:"realname"`
Fullname string `xml:"fullname,attr"`
Firstname string `xml:"firstname"`
Familyname struct {
XMLName xml.Name `xml:"familyname"`
Sort string `xml:"sort,attr"`
// check if used anywhere, if not remove to make <familyname/> just string
Content string `xml:",chardata"`
} `xml:"familyname"`
} `xml:"realname"`
PGPKey []string `xml:"PGPKey"`
Alias []string `xml:"alias"`
Email []string `xml:"email"`
Joined []string `xml:"joined"`
Retired []string `xml:"retired"`
Status string `xml:"status"`
Roles string `xml:"roles"`
Location struct {
XMLName xml.Name `xml:"location"`
Latitude string `xml:"latitude,attr"`
Longitude string `xml:"longitude,attr"`
Content string `xml:",chardata"`
} `xml:"location"`
} `xml:"user"`
}