Ajouter Response et Responder

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-05 16:14:54 -04:00
parent 93495d76e9
commit 93334871e9

15
responses/root.go Normal file
View file

@ -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
}