// Copyright 2020 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.packageosutilimport("os""gogs.io/gogs/internal/errutil")var_errutil.NotFound=(*Error)(nil)// Error is a wrapper of an OS error, which handles not found.typeErrorstruct{error}func(eError)NotFound()bool{returne.error==os.ErrNotExist}// NewError wraps given error.funcNewError(errerror)error{returnError{error:err}}