removing named return values
- avoiding confusion w long functions for naked returns
This commit is contained in:
parent
5b32d09a27
commit
d1a5de82fe
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user