feat(alias): support Rename and Remove (#6478)

* feat(alias): support `Rename` and `Remove`

* fix(alias): `autoFlatten` not updated after editing

* feat(alias): add `protect_same_name` option
This commit is contained in:
j2rong4cn
2024-05-22 09:27:48 +08:00
committed by GitHub
parent bbe3d4e19f
commit 037850bbd5
4 changed files with 70 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package errs
import (
"errors"
"fmt"
pkgerr "github.com/pkg/errors"
)
@ -33,3 +34,6 @@ func IsNotFoundError(err error) bool {
func IsNotSupportError(err error) bool {
return errors.Is(pkgerr.Cause(err), NotSupport)
}
func IsNotImplement(err error) bool {
return errors.Is(pkgerr.Cause(err), NotImplement)
}