sometimes struggling wiht errors in the post/put/get requests where we expect a copy of the row to be returned. But, sometimes the return will actually be an error or a model but obviously I dont know that until it has been unmarshalled, so it might be better to wrap the api response in a struct that holds data and error, and then I can just check if the error section is nil or not
sometimes struggling wiht errors in the post/put/get requests where we expect a copy of the row to be returned. But, sometimes the return will actually be an error or a model but obviously I dont know that until it has been unmarshalled, so it might be better to wrap the api response in a struct that holds data and error, and then I can just check if the error section is nil or not