From 5348ef65d4b7cdbe445f6a1cde1e8c807f61e611 Mon Sep 17 00:00:00 2001 From: Simone Vellei Date: Sat, 18 Mar 2023 10:59:17 +0100 Subject: [PATCH] Chore/fix docs (#4) * chore: refactor eliminating readCloser * chore: close body * fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bff0458..f06e8ce 100644 --- a/README.md +++ b/README.md @@ -53,11 +53,11 @@ func (r *MyResponse) Decode(body io.Reader) error { // Decode the response body into the response model } -func (r *MyResponse) SetBody(body io.Reader) { +func (r *MyResponse) SetBody(body io.Reader) error { // Set the response body if needed } -func (r *MyResponse) StatusCode() int { +func (r *MyResponse) StatusCode(int code) error { // Handler to set the HTTP status code of the response }