From 93334871e9cdb6dd1c0f86cecd9628ac292160b2 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 5 Sep 2023 16:14:54 -0400 Subject: [PATCH] Ajouter Response et Responder --- responses/root.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 responses/root.go diff --git a/responses/root.go b/responses/root.go new file mode 100644 index 0000000..0f0bcce --- /dev/null +++ b/responses/root.go @@ -0,0 +1,15 @@ +package responses + +type Response struct { + StatusCode int + Message string + Error string +} + +type Responder interface { + Respond() Responder +} + +func (r Response) Respond() Responder { + return r +}