[#147] Add constant error type

closes #147

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2020-10-14 22:00:39 +03:00 committed by Alex Vanin
parent 7b3736567c
commit 28260eb2ff

9
internal/error.go Normal file
View file

@ -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)
}