github.com/Mrs4s/MiraiGo@v0.0.0-20240226124653-54bdd873e3fe/client/internal/auth/protocoltype_string.go (about) 1 // Code generated by "stringer -type=ProtocolType -linecomment"; DO NOT EDIT. 2 3 package auth 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[Unset-0] 12 _ = x[AndroidPhone-1] 13 _ = x[AndroidWatch-2] 14 _ = x[MacOS-3] 15 _ = x[QiDian-4] 16 _ = x[IPad-5] 17 _ = x[AndroidPad-6] 18 } 19 20 const _ProtocolType_name = "UnsetAndroid PhoneAndroid WatchMacOSä¼ē¹iPadAndroid Pad" 21 22 var _ProtocolType_index = [...]uint8{0, 5, 18, 31, 36, 42, 46, 57} 23 24 func (i ProtocolType) String() string { 25 if i < 0 || i >= ProtocolType(len(_ProtocolType_index)-1) { 26 return "ProtocolType(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _ProtocolType_name[_ProtocolType_index[i]:_ProtocolType_index[i+1]] 29 }