1
0
mirror of synced 2024-11-22 04:56:06 +03:00
mg-transport-api-client-go/v1/helpers.go

18 lines
222 B
Go
Raw Normal View History

2022-10-26 10:54:54 +03:00
package v1
import (
"io"
"net/http"
)
func buildRawResponse(resp *http.Response) ([]byte, error) {
defer resp.Body.Close()
res, err := io.ReadAll(resp.Body)
if err != nil {
return res, err
}
return res, nil
}