-
Notifications
You must be signed in to change notification settings - Fork 0
/
datatype.go
55 lines (47 loc) · 1.1 KB
/
datatype.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package main
type Solution struct {
Name string `json:"name"`
Projects *[]Project `json:"projects"`
Run *Run `json:"run"`
PreRun *Run `json:"prerun"`
}
type Project struct {
Name string `json:"name"`
Source *string `json:"source"`
Run *Run `json:"run"`
PreRun *Run `json:"prerun"`
Replaces *[]ReplaceItem `json:"replaces"`
}
type ReplaceItem struct {
Name string `json:"to"`
Items []ReplaceDetail `json:"items"`
Run *Run `json:"run"`
PreRun *Run `json:"prerun"`
}
type Run struct {
Default *[][]string `json:"default"`
Windows *[][]string `json:"windows"`
Linux *[][]string `json:"linux"`
Darwin *[][]string `json:"darwin"`
}
type ReplaceDetail struct {
Old string `json:"old"`
New string `json:"new"`
Num *int `json:"num"`
}
type FileData struct {
Path string
LoadString string
LoadSize int
NewString string
NewSize int
}
type Names struct {
Solution string
Project string
Replace string
}
type BackupItem struct {
SourceFile string
JobName Names
}