Release 2.0.0

This commit is contained in:
Santiago Lezica
2021-01-29 18:51:08 -03:00
parent 8107c4478b
commit cef49eff22
209 changed files with 70157 additions and 926 deletions

28
vendor/github.com/muun/libwallet/errors/errors.go generated vendored Normal file
View File

@@ -0,0 +1,28 @@
package errors
import (
"errors"
"fmt"
)
type Error struct {
err error
code int64
}
func (e *Error) Error() string {
return e.err.Error()
}
func (e *Error) Code() int64 {
return e.code
}
func New(code int64, msg string) error {
return &Error{errors.New(msg), code}
}
func Errorf(code int64, format string, a ...interface{}) error {
err := fmt.Errorf(format, a...)
return &Error{err, code}
}