1
0
mirror of https://github.com/badkaktus/gorocket.git synced 2025-07-15 01:14:21 +02:00

fix formatting

This commit is contained in:
Алексей Волегов
2022-09-19 14:19:35 +03:00
parent 0422f7a38f
commit 8cc2f17225

View File

@ -247,10 +247,10 @@ func (c *Client) GetPinnedMessages(param *GetPinnedMsgRequest) (*GetPinnedMsgRes
url.Add("roomId", param.RoomId) url.Add("roomId", param.RoomId)
} }
if param.Offset != 0 { if param.Offset != 0 {
url.Add("offset", string(param.Offset)) url.Add("offset", fmt.Sprintf("%d", param.Offset))
} }
if param.Count != 0 { if param.Count != 0 {
url.Add("count", string(param.Count)) url.Add("count", fmt.Sprintf("%d", param.Count))
} }
req.URL.RawQuery = url.Encode() req.URL.RawQuery = url.Encode()