// 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")typeUserNotKeyOwnerstruct{KeyIDint64}funcIsUserNotKeyOwner(errerror)bool{_,ok:=err.(UserNotKeyOwner)returnok}func(errUserNotKeyOwner)Error()string{returnfmt.Sprintf("user is not the owner of public key [key_id: %d]",err.KeyID)}