package auth type authError struct { InnerError error } type ErrorUnauthorized authError func (eu *ErrorUnauthorized) Error() string { return "Invalid username or password" } type ErrorForbidden authError func (ef *ErrorForbidden) Error() string { return "Access is denied" }