// Copyright 2017 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packageerrorsimport"fmt"typeEmailNotFoundstruct{Emailstring}funcIsEmailNotFound(errerror)bool{_,ok:=err.(EmailNotFound)returnok}func(errEmailNotFound)Error()string{returnfmt.Sprintf("email is not found [email: %s]",err.Email)}typeEmailNotVerifiedstruct{Emailstring}funcIsEmailNotVerified(errerror)bool{_,ok:=err.(EmailNotVerified)returnok}func(errEmailNotVerified)Error()string{returnfmt.Sprintf("email has not been verified [email: %s]",err.Email)}