From 28260eb2ff0e3ba3b3bb19de1a6d51a9b0a12dcb Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Wed, 14 Oct 2020 22:00:39 +0300 Subject: [PATCH] [#147] Add constant error type closes #147 Signed-off-by: Evgeniy Kulikov --- internal/error.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 internal/error.go diff --git a/internal/error.go b/internal/error.go new file mode 100644 index 00000000..537c02ca --- /dev/null +++ b/internal/error.go @@ -0,0 +1,9 @@ +package internal + +// Error is constant type error. +type Error string + +// Error implementation of error interface. +func (e Error) Error() string { + return string(e) +}