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

18 lines
222 B
Go

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
}