mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 21:33:22 +01:00
chore: go mod vendor
This commit is contained in:
18
vendor/github.com/gregdel/pushover/errors.go
generated
vendored
Normal file
18
vendor/github.com/gregdel/pushover/errors.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package pushover
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Errors represents the errors returned by pushover.
|
||||
type Errors []string
|
||||
|
||||
// Error represents the error as a string.
|
||||
func (e Errors) Error() string {
|
||||
ret := ""
|
||||
if len(e) > 0 {
|
||||
ret = "Errors:\n"
|
||||
ret += strings.Join(e, "\n")
|
||||
}
|
||||
return ret
|
||||
}
|
||||
Reference in New Issue
Block a user