github.com/go-tstr/tstr/strerr
go get github.com/go-tstr/tstr/strerr@v0.2.6
Overview
Package strerr provides string error type that allows declaring errors as constants unlike Go's own errors.New which uses privete struct type.
Types
type Error
type Error stringError adds Error method to string type.
func (Error) Error
func (e Error) Error() string