16 lines
202 B
Go
16 lines
202 B
Go
|
package responses
|
||
|
|
||
|
type Response struct {
|
||
|
StatusCode int
|
||
|
Message string
|
||
|
Error string
|
||
|
}
|
||
|
|
||
|
type Responder interface {
|
||
|
Respond() Responder
|
||
|
}
|
||
|
|
||
|
func (r Response) Respond() Responder {
|
||
|
return r
|
||
|
}
|