add new response function
This commit is contained in:
@@ -6,6 +6,10 @@ import (
|
|||||||
"github.com/tecamino/tecamino-json_data/models"
|
"github.com/tecamino/tecamino-json_data/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func NewResponse() *models.Response {
|
||||||
|
return &models.Response{}
|
||||||
|
}
|
||||||
|
|
||||||
func ParseResponse(b []byte) (*models.Response, error) {
|
func ParseResponse(b []byte) (*models.Response, error) {
|
||||||
r := models.Response{}
|
r := models.Response{}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user