I have two interfaces:
type Request interface {
Version() string
Method() string
Params() interface{}
Id() interface{}
}
type Responder interface {
NewSuccessResponse() Response
NewErrorResponse() Response
}
I would like to make a RequestResponder
interface which combines both of these. Is this possible, or do I have to create a third interface with all 6 functions?