add comments and new parameter id for client request order
This commit is contained in:
@@ -7,10 +7,12 @@ import (
|
||||
"github.com/tecamino/tecamino-json_data/models"
|
||||
)
|
||||
|
||||
// Returns a new json_data Response model
|
||||
func NewResponse() *models.Response {
|
||||
return &models.Response{}
|
||||
}
|
||||
|
||||
// Parses the response body of a http or web socket request
|
||||
func ParseResponse(body io.ReadCloser) (*models.Response, error) {
|
||||
b, err := io.ReadAll(body)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user