A better way to implement constant errors in Go
Simply import the package and use consterr.Error as the type for your constants, assigning a string value. For example:
import "github.com/panux/consterr"
const (
example consterr.Error = "Example error"
)