From c51a9dd8ee33ea9d81e38cd14e2bc4ad79b73d86 Mon Sep 17 00:00:00 2001 From: Felipe Martinez Date: Sat, 30 Jan 2021 00:24:50 +0100 Subject: [PATCH] Fix error functions signatures --- errors/errors.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/errors/errors.go b/errors/errors.go index e90a654..c83891a 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -1,21 +1,21 @@ package errors -func BadRequest(format string, a ...string) error { - return NewError(400, format, a) +func BadRequest(format string, a ...interface{}) error { + return NewError(400, format, a...) } -func Unauthorized(format string, a ...string) error { - return NewError(401, format, a) +func Unauthorized(format string, a ...interface{}) error { + return NewError(401, format, a...) } -func Forbidden(format string, a ...string) error { - return NewError(403, format, a) +func Forbidden(format string, a ...interface{}) error { + return NewError(403, format, a...) } -func NotFound(format string, a ...string) error { - return NewError(404, format, a) +func NotFound(format string, a ...interface{}) error { + return NewError(404, format, a...) } -func InternalServerError(format string, a ...string) error { - return NewError(404, format, a) +func InternalServerError(format string, a ...interface{}) error { + return NewError(404, format, a...) }