gotd: update to layer 218
This commit is contained in:
@@ -26,8 +26,9 @@ const _PhotoSizeSourceType_name = "PhotoSizeSourceLegacyPhotoSizeSourceThumbnail
|
||||
var _PhotoSizeSourceType_index = [...]uint16{0, 21, 45, 76, 105, 139, 164, 201, 236, 276, 317, 340}
|
||||
|
||||
func (i PhotoSizeSourceType) String() string {
|
||||
if i < 0 || i >= PhotoSizeSourceType(len(_PhotoSizeSourceType_index)-1) {
|
||||
idx := int(i) - 0
|
||||
if i < 0 || idx >= len(_PhotoSizeSourceType_index)-1 {
|
||||
return "PhotoSizeSourceType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _PhotoSizeSourceType_name[_PhotoSizeSourceType_index[i]:_PhotoSizeSourceType_index[i+1]]
|
||||
return _PhotoSizeSourceType_name[_PhotoSizeSourceType_index[idx]:_PhotoSizeSourceType_index[idx+1]]
|
||||
}
|
||||
|
||||
@@ -34,8 +34,9 @@ const _Type_name = "ThumbnailProfilePhotoPhotoVoiceVideoDocumentEncryptedTempSti
|
||||
var _Type_index = [...]uint8{0, 9, 21, 26, 31, 36, 44, 53, 57, 64, 69, 78, 96, 105, 114, 123, 129, 139, 153, 161}
|
||||
|
||||
func (i Type) String() string {
|
||||
if i < 0 || i >= Type(len(_Type_index)-1) {
|
||||
idx := int(i) - 0
|
||||
if i < 0 || idx >= len(_Type_index)-1 {
|
||||
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Type_name[_Type_index[i]:_Type_index[i+1]]
|
||||
return _Type_name[_Type_index[idx]:_Type_index[idx+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user