forked from LumenResearch/uasurfer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst_string.go
More file actions
140 lines (125 loc) · 4.86 KB
/
const_string.go
File metadata and controls
140 lines (125 loc) · 4.86 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by "stringer -type=DeviceType,BrowserName,OSName,Platform -output=const_string.go"; DO NOT EDIT.
package uasurfer
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[DeviceUnknown-0]
_ = x[DeviceComputer-1]
_ = x[DeviceTablet-2]
_ = x[DevicePhone-3]
_ = x[DeviceConsole-4]
_ = x[DeviceWearable-5]
_ = x[DeviceTV-6]
}
const _DeviceType_name = "DeviceUnknownDeviceComputerDeviceTabletDevicePhoneDeviceConsoleDeviceWearableDeviceTV"
var _DeviceType_index = [...]uint8{0, 13, 27, 39, 50, 63, 77, 85}
func (i DeviceType) String() string {
if i < 0 || i >= DeviceType(len(_DeviceType_index)-1) {
return "DeviceType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _DeviceType_name[_DeviceType_index[i]:_DeviceType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[BrowserUnknown-0]
_ = x[BrowserChrome-1]
_ = x[BrowserIE-2]
_ = x[BrowserSafari-3]
_ = x[BrowserFirefox-4]
_ = x[BrowserAndroid-5]
_ = x[BrowserOpera-6]
_ = x[BrowserBlackberry-7]
_ = x[BrowserUCBrowser-8]
_ = x[BrowserSilk-9]
_ = x[BrowserNokia-10]
_ = x[BrowserNetFront-11]
_ = x[BrowserQQ-12]
_ = x[BrowserMaxthon-13]
_ = x[BrowserSogouExplorer-14]
_ = x[BrowserSpotify-15]
_ = x[BrowserNintendo-16]
_ = x[BrowserSamsung-17]
_ = x[BrowserYandex-18]
_ = x[BrowserCocCoc-19]
_ = x[BrowserBot-20]
_ = x[BrowserAppleBot-21]
_ = x[BrowserBaiduBot-22]
_ = x[BrowserBingBot-23]
_ = x[BrowserDuckDuckGoBot-24]
_ = x[BrowserFacebookBot-25]
_ = x[BrowserGoogleBot-26]
_ = x[BrowserLinkedInBot-27]
_ = x[BrowserMsnBot-28]
_ = x[BrowserPingdomBot-29]
_ = x[BrowserTwitterBot-30]
_ = x[BrowserYandexBot-31]
_ = x[BrowserCocCocBot-32]
_ = x[BrowserYahooBot-33]
_ = x[BrowserEdge-34]
}
const _BrowserName_name = "BrowserUnknownBrowserChromeBrowserIEBrowserSafariBrowserFirefoxBrowserAndroidBrowserOperaBrowserBlackberryBrowserUCBrowserBrowserSilkBrowserNokiaBrowserNetFrontBrowserQQBrowserMaxthonBrowserSogouExplorerBrowserSpotifyBrowserNintendoBrowserSamsungBrowserYandexBrowserCocCocBrowserBotBrowserAppleBotBrowserBaiduBotBrowserBingBotBrowserDuckDuckGoBotBrowserFacebookBotBrowserGoogleBotBrowserLinkedInBotBrowserMsnBotBrowserPingdomBotBrowserTwitterBotBrowserYandexBotBrowserCocCocBotBrowserYahooBotBrowserEdge"
var _BrowserName_index = [...]uint16{0, 14, 27, 36, 49, 63, 77, 89, 106, 122, 133, 145, 160, 169, 183, 203, 217, 232, 246, 259, 272, 282, 297, 312, 326, 346, 364, 380, 398, 411, 428, 445, 461, 477, 492, 503}
func (i BrowserName) String() string {
if i < 0 || i >= BrowserName(len(_BrowserName_index)-1) {
return "BrowserName(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _BrowserName_name[_BrowserName_index[i]:_BrowserName_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[OSUnknown-0]
_ = x[OSWindowsPhone-1]
_ = x[OSWindows-2]
_ = x[OSMacOSX-3]
_ = x[OSiOS-4]
_ = x[OSAndroid-5]
_ = x[OSBlackberry-6]
_ = x[OSChromeOS-7]
_ = x[OSKindle-8]
_ = x[OSWebOS-9]
_ = x[OSLinux-10]
_ = x[OSPlaystation-11]
_ = x[OSXbox-12]
_ = x[OSNintendo-13]
_ = x[OSBot-14]
}
const _OSName_name = "OSUnknownOSWindowsPhoneOSWindowsOSMacOSXOSiOSOSAndroidOSBlackberryOSChromeOSOSKindleOSWebOSOSLinuxOSPlaystationOSXboxOSNintendoOSBot"
var _OSName_index = [...]uint8{0, 9, 23, 32, 40, 45, 54, 66, 76, 84, 91, 98, 111, 117, 127, 132}
func (i OSName) String() string {
if i < 0 || i >= OSName(len(_OSName_index)-1) {
return "OSName(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _OSName_name[_OSName_index[i]:_OSName_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[PlatformUnknown-0]
_ = x[PlatformWindows-1]
_ = x[PlatformMac-2]
_ = x[PlatformLinux-3]
_ = x[PlatformiPad-4]
_ = x[PlatformiPhone-5]
_ = x[PlatformiPod-6]
_ = x[PlatformBlackberry-7]
_ = x[PlatformWindowsPhone-8]
_ = x[PlatformPlaystation-9]
_ = x[PlatformXbox-10]
_ = x[PlatformNintendo-11]
_ = x[PlatformBot-12]
}
const _Platform_name = "PlatformUnknownPlatformWindowsPlatformMacPlatformLinuxPlatformiPadPlatformiPhonePlatformiPodPlatformBlackberryPlatformWindowsPhonePlatformPlaystationPlatformXboxPlatformNintendoPlatformBot"
var _Platform_index = [...]uint8{0, 15, 30, 41, 54, 66, 80, 92, 110, 130, 149, 161, 177, 188}
func (i Platform) String() string {
if i < 0 || i >= Platform(len(_Platform_index)-1) {
return "Platform(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Platform_name[_Platform_index[i]:_Platform_index[i+1]]
}