1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

CI: minor: use the new exclude-paths (dependabot PR approved some days ago)

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-16 22:48:38 +03:00
parent a8a3afea22
commit 92164cee52
37 changed files with 268 additions and 266 deletions

View File

@@ -335,7 +335,7 @@ func NewRoutePathReverser(apiRoutesProvider RoutesProvider, options ...RoutePath
}
// Path returns a route path based on a route name and any dynamic named parameter's values-only.
func (ps *RoutePathReverser) Path(routeName string, paramValues ...interface{}) string {
func (ps *RoutePathReverser) Path(routeName string, paramValues ...any) string {
r := ps.provider.GetRoute(routeName)
if r == nil {
return ""
@@ -348,7 +348,7 @@ func (ps *RoutePathReverser) Path(routeName string, paramValues ...interface{})
return r.ResolvePath(toStringSlice(paramValues)...)
}
func toStringSlice(args []interface{}) (argsString []string) {
func toStringSlice(args []any) (argsString []string) {
argsSize := len(args)
if argsSize <= 0 {
return
@@ -376,7 +376,7 @@ func toStringSlice(args []interface{}) (argsString []string) {
// developers can just concat the subdomain, (host can be auto-retrieve by browser using the Path).
// URL same as Path but returns the full uri, i.e https://mysubdomain.mydomain.com/hello/iris
func (ps *RoutePathReverser) URL(routeName string, paramValues ...interface{}) (url string) {
func (ps *RoutePathReverser) URL(routeName string, paramValues ...any) (url string) {
if ps.vhost == "" || ps.vscheme == "" {
return "not supported"
}