removing named return values
- avoiding confusion w long functions for naked returns
This commit is contained in:
@@ -12,7 +12,7 @@ type Command struct {
|
||||
|
||||
// payload function type handling commands. The returned error is parsed and, if no error,
|
||||
// is detected then the response string (res) will be sent in response to the command message
|
||||
type Payload func(msg Message) (res string, err error)
|
||||
type Payload func(msg Message) (string, error)
|
||||
|
||||
// contains the basic information needed for a message command
|
||||
type Message struct {
|
||||
|
Reference in New Issue
Block a user