Home / Function/ hasPartialMatchBoundary() — fiber Function Reference

hasPartialMatchBoundary() — fiber Function Reference

Architecture documentation for the hasPartialMatchBoundary() function in path.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  98da27fe_4ec0_67e0_4846_8e8a5a8f78fe["hasPartialMatchBoundary()"]
  bedec411_93e0_4024_219e_79649f60a9be["path.go"]
  98da27fe_4ec0_67e0_4846_8e8a5a8f78fe -->|defined in| bedec411_93e0_4024_219e_79649f60a9be
  style 98da27fe_4ec0_67e0_4846_8e8a5a8f78fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path.go lines 484–502

func hasPartialMatchBoundary(path string, matchedLength int) bool {
	if matchedLength < 0 || matchedLength > len(path) {
		return false
	}
	if matchedLength == len(path) {
		return true
	}
	if matchedLength == 0 {
		return false
	}
	if path[matchedLength-1] == slashDelimiter {
		return true
	}
	if matchedLength < len(path) && path[matchedLength] == slashDelimiter {
		return true
	}

	return false
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does hasPartialMatchBoundary() do?
hasPartialMatchBoundary() is a function in the fiber codebase, defined in path.go.
Where is hasPartialMatchBoundary() defined?
hasPartialMatchBoundary() is defined in path.go at line 484.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free