1 Commits

Author SHA1 Message Date
d1a5de82fe removing named return values
- avoiding confusion w long functions for naked returns
2025-06-04 23:22:10 -04:00

View File

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