@@ -17,25 +17,25 @@ const (
17
17
)
18
18
19
19
type DeviceDetectorResult struct {
20
- Client ClientResult
21
- Device DeviceResult
22
- OS OperatingSystemResult
23
- Bot BotResult
20
+ Client ClientResult `json:"client"`
21
+ Device DeviceResult `json:"device"`
22
+ OS OperatingSystemResult `json:"os"`
23
+ Bot BotResult `json:"bot"`
24
24
}
25
25
26
26
type ClientResult struct {
27
- Name string
28
- Version string
29
- Engine string
30
- EngineVersion string
31
- Type string
32
- URL string
27
+ Name string `json:"name"`
28
+ Version string `json:"version"`
29
+ Engine string `json:"engine"`
30
+ EngineVersion string `json:"engineVersion"`
31
+ Type string `json:"type"`
32
+ URL string `json:"url"`
33
33
}
34
34
35
35
type DeviceResult struct {
36
- Type DeviceType
37
- Brand string
38
- Model string
36
+ Type DeviceType `json:"type"`
37
+ Brand string `json:"brand"`
38
+ Model string `json:"model"`
39
39
}
40
40
41
41
type DeviceType string
@@ -58,17 +58,17 @@ const (
58
58
)
59
59
60
60
type OperatingSystemResult struct {
61
- Name string
62
- Version string
63
- Platform string
61
+ Name string `json:"name"`
62
+ Version string `json:"version"`
63
+ Platform string `json:"platform"`
64
64
}
65
65
66
66
type BotResult struct {
67
- Name string
68
- Category string
69
- URL string
67
+ Name string `json:"name"`
68
+ Category string `json:"category"`
69
+ URL string `json:"url"`
70
70
Producer struct {
71
- Name string
72
- URL string
73
- }
71
+ Name string `json:"name"`
72
+ URL string `json:"url"`
73
+ } `json:"producer"`
74
74
}
0 commit comments