// 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"typeIssueNotExiststruct{IDint64RepoIDint64Indexint64}funcIsIssueNotExist(errerror)bool{_,ok:=err.(IssueNotExist)returnok}func(errIssueNotExist)Error()string{returnfmt.Sprintf("issue does not exist [id: %d, repo_id: %d, index: %d]",err.ID,err.RepoID,err.Index)}typeInvalidIssueReferencestruct{Refstring}funcIsInvalidIssueReference(errerror)bool{_,ok:=err.(InvalidIssueReference)returnok}func(errInvalidIssueReference)Error()string{returnfmt.Sprintf("invalid issue reference [ref: %s]",err.Ref)}