Correct formatting of code with `go fmt`

bot-api-6.1
Amir Khazaie 2018-07-04 15:19:37 +04:30
parent 31f4975464
commit 4edcb0fa1a
1 changed files with 17 additions and 17 deletions

View File

@ -406,8 +406,8 @@ func NewInlineQueryResultGIF(id, url string) InlineQueryResultGIF {
// NewInlineQueryResultCachedGIF create a new inline query with cached photo. // NewInlineQueryResultCachedGIF create a new inline query with cached photo.
func NewInlineQueryResultCachedGIF(id, gifID string) InlineQueryResultCachedGIF { func NewInlineQueryResultCachedGIF(id, gifID string) InlineQueryResultCachedGIF {
return InlineQueryResultCachedGIF{ return InlineQueryResultCachedGIF{
Type: "gif", Type: "gif",
ID: id, ID: id,
GifID: gifID, GifID: gifID,
} }
} }
@ -424,8 +424,8 @@ func NewInlineQueryResultMPEG4GIF(id, url string) InlineQueryResultMPEG4GIF {
// NewInlineQueryResultCachedPhoto create a new inline query with cached photo. // NewInlineQueryResultCachedPhoto create a new inline query with cached photo.
func NewInlineQueryResultCachedMPEG4GIF(id, MPEG4GifID string) InlineQueryResultCachedMpeg4Gif { func NewInlineQueryResultCachedMPEG4GIF(id, MPEG4GifID string) InlineQueryResultCachedMpeg4Gif {
return InlineQueryResultCachedMpeg4Gif{ return InlineQueryResultCachedMpeg4Gif{
Type: "mpeg4_gif", Type: "mpeg4_gif",
ID: id, ID: id,
MGifID: MPEG4GifID, MGifID: MPEG4GifID,
} }
} }
@ -452,8 +452,8 @@ func NewInlineQueryResultPhotoWithThumb(id, url, thumb string) InlineQueryResult
// NewInlineQueryResultCachedPhoto create a new inline query with cached photo. // NewInlineQueryResultCachedPhoto create a new inline query with cached photo.
func NewInlineQueryResultCachedPhoto(id, photoID string) InlineQueryResultCachedPhoto { func NewInlineQueryResultCachedPhoto(id, photoID string) InlineQueryResultCachedPhoto {
return InlineQueryResultCachedPhoto{ return InlineQueryResultCachedPhoto{
Type: "photo", Type: "photo",
ID: id, ID: id,
PhotoID: photoID, PhotoID: photoID,
} }
} }
@ -470,10 +470,10 @@ func NewInlineQueryResultVideo(id, url string) InlineQueryResultVideo {
// NewInlineQueryResultCachedVideo create a new inline query with cached video. // NewInlineQueryResultCachedVideo create a new inline query with cached video.
func NewInlineQueryResultCachedVideo(id, videoID, title string) InlineQueryResultCachedVideo { func NewInlineQueryResultCachedVideo(id, videoID, title string) InlineQueryResultCachedVideo {
return InlineQueryResultCachedVideo{ return InlineQueryResultCachedVideo{
Type: "video", Type: "video",
ID: id, ID: id,
VideoID: videoID, VideoID: videoID,
Title: title, Title: title,
} }
} }
@ -490,8 +490,8 @@ func NewInlineQueryResultAudio(id, url, title string) InlineQueryResultAudio {
// NewInlineQueryResultCachedAudio create a new inline query with cached photo. // NewInlineQueryResultCachedAudio create a new inline query with cached photo.
func NewInlineQueryResultCachedAudio(id, audioID string) InlineQueryResultCachedAudio { func NewInlineQueryResultCachedAudio(id, audioID string) InlineQueryResultCachedAudio {
return InlineQueryResultCachedAudio{ return InlineQueryResultCachedAudio{
Type: "audio", Type: "audio",
ID: id, ID: id,
AudioID: audioID, AudioID: audioID,
} }
} }
@ -509,10 +509,10 @@ func NewInlineQueryResultVoice(id, url, title string) InlineQueryResultVoice {
// NewInlineQueryResultCachedVoice create a new inline query with cached photo. // NewInlineQueryResultCachedVoice create a new inline query with cached photo.
func NewInlineQueryResultCachedVoice(id, voiceID, title string) InlineQueryResultCachedVoice { func NewInlineQueryResultCachedVoice(id, voiceID, title string) InlineQueryResultCachedVoice {
return InlineQueryResultCachedVoice{ return InlineQueryResultCachedVoice{
Type: "voice", Type: "voice",
ID: id, ID: id,
VoiceID: voiceID, VoiceID: voiceID,
Title: title, Title: title,
} }
} }
@ -530,10 +530,10 @@ func NewInlineQueryResultDocument(id, url, title, mimeType string) InlineQueryRe
// NewInlineQueryResultCachedDocument create a new inline query with cached photo. // NewInlineQueryResultCachedDocument create a new inline query with cached photo.
func NewInlineQueryResultCachedDocument(id, documentID, title string) InlineQueryResultCachedDocument { func NewInlineQueryResultCachedDocument(id, documentID, title string) InlineQueryResultCachedDocument {
return InlineQueryResultCachedDocument{ return InlineQueryResultCachedDocument{
Type: "document", Type: "document",
ID: id, ID: id,
DocumentID: documentID, DocumentID: documentID,
Title: title, Title: title,
} }
} }