/
CodeTemplate.go
37 lines (31 loc) · 1.23 KB
/
CodeTemplate.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
package model
import "encoding/xml"
type CodeTemplates struct {
XMLName xml.Name `xml:"list"`
Templates []CodeTemplate `xml:",innerxml"`
}
type CodeTemplate struct {
XMLName xml.Name `xml:"codeTemplate"`
Versionø string `xml:"version,attr"`
XMLContentø string `xml:",innerxml"`
}
type CodeLibraries struct {
XMLName xml.Name `xml:"list"`
Libraries []CodeLibrary `xml:",innerxml"`
}
type CodeLibrary struct {
XMLName xml.Name `xml:"codeTemplateLibrary"`
Id string `xml:"id"`
Name string `xml:"name"`
Revision string `xml:"revision"`
Description string `xml:"description"`
IncludeNewChannels bool `xml:"includeNewChannels"`
EnabledChannelIds []string `xml:"enabledChannelIds>string"`
DisabledChannelIds []string `xml:"disabledChannelIds>string"`
CodeTemplateRefs []CodeLibraryCodeTemplateRef `xml:"codeTemplates>codeTemplate"`
}
type CodeLibraryCodeTemplateRef struct {
XMLName xml.Name `xml:"codeTemplate"`
Id string `xml:"id"`
Versionø string `xml:"version,attr"`
}