// Copyright 2015 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.packagegitimport("fmt")typeErrUnsupportedVersionstruct{Requiredstring}funcIsErrUnsupportedVersion(errerror)bool{_,ok:=err.(ErrUnsupportedVersion)returnok}func(errErrUnsupportedVersion)Error()string{returnfmt.Sprintf("Operation requires higher version [required: %s]",err.Required)}