-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.go
69 lines (61 loc) · 2.08 KB
/
result.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package wolframgo
type baseResult struct {
Result ComplexResult `json:"queryresult"`
}
type ComplexResult struct {
Success bool `json:"success"`
Error bool `json:"error"`
NumPods int `json:"numpods"`
DataTypes string `json:"datatypes"`
TimedOut string `json:"timedout"`
TimedOutPods string `json:"timedoutpods"`
Timing float64 `json:"timing"`
ParseTiming float64 `json:"parsetiming"`
ParseTimedOut bool `json:"parsetimedout"`
Recalculate string `json:"recalculate"`
ID string `json:"id"`
Host string `json:"host"`
Server string `json:"server"`
Related string `json:"related"`
Version string `json:"version"`
InputString string `json:"inputstring"`
Pods []Pod `json:"pods"`
UserInfoused UserInfoused `json:"userinfoused"`
Sources Sources `json:"sources"`
}
type Pod struct {
Title string `json:"title"`
Scanner string `json:"scanner"`
ID string `json:"id"`
Position int `json:"position"`
Error bool `json:"error"`
NumSubPods int `json:"numsubpods"`
Primary bool `json:"primary"`
SubPods []SubPods `json:"subpods"`
ExpressionTypes ExpressionTypes `json:"expressiontypes"`
}
type Img struct {
Src string `json:"src"`
Alt string `json:"alt"`
Title string `json:"title"`
Width int `json:"width"`
Height int `json:"height"`
Type string `json:"type"`
Themes string `json:"themes"`
ColorInvertable bool `json:"colorinvertable"`
}
type SubPods struct {
Title string `json:"title"`
Img Img `json:"img"`
Plaintext string `json:"plaintext"`
}
type ExpressionTypes struct {
Name string `json:"name"`
}
type UserInfoused struct {
Name string `json:"name"`
}
type Sources struct {
URL string `json:"url"`
Text string `json:"text"`
}