mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-06 21:04:11 +02:00
go fmt whole project.
This commit is contained in:
parent
c7a178e5a4
commit
f85d4d312f
14 changed files with 177 additions and 180 deletions
|
@ -3,15 +3,15 @@ package endpoint
|
|||
import "fmt"
|
||||
|
||||
type HandlerError struct {
|
||||
Status int
|
||||
Message string
|
||||
Err error
|
||||
Status int
|
||||
Message string
|
||||
Err error
|
||||
}
|
||||
|
||||
func (e *HandlerError) Error() string {
|
||||
if e.Err != nil {
|
||||
return fmt.Sprintf("%s: %s", e.Message, e.Err.Error())
|
||||
}
|
||||
if e.Err != nil {
|
||||
return fmt.Sprintf("%s: %s", e.Message, e.Err.Error())
|
||||
}
|
||||
|
||||
return e.Message
|
||||
return e.Message
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue