MCPcopy Index your code
hub / github.com/labstack/echo / normalizePathSlash

Function normalizePathSlash

router.go:529–536  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

527}
528
529func normalizePathSlash(path string) string {
530 if path == "" {
531 path = "/"
532 } else if path[0] != '/' {
533 path = "/" + path
534 }
535 return path
536}
537
538func (r *DefaultRouter) storeRouteInfo(ri RouteInfo) {
539 for i, rr := range r.routes {

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…