findNextParamPosition() — fiber Function Reference
Architecture documentation for the findNextParamPosition() function in path.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 14990a44_e318_2513_a39b_3be79d7bdf9c["findNextParamPosition()"] bedec411_93e0_4024_219e_79649f60a9be["path.go"] 14990a44_e318_2513_a39b_3be79d7bdf9c -->|defined in| bedec411_93e0_4024_219e_79649f60a9be style 14990a44_e318_2513_a39b_3be79d7bdf9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
path.go lines 303–322
func findNextParamPosition(pattern string) int {
// Find the first parameter position
next := -1
for i := range pattern {
if parameterStartChars[pattern[i]] && (i == 0 || pattern[i-1] != escapeChar) {
next = i
break
}
}
if next > 0 && pattern[next] != wildcardParam {
// checking the found parameterStartChar is a cluster
for i := next + 1; i < len(pattern); i++ {
if !parameterStartChars[pattern[i]] {
return i - 1
}
}
return len(pattern) - 1
}
return next
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does findNextParamPosition() do?
findNextParamPosition() is a function in the fiber codebase, defined in path.go.
Where is findNextParamPosition() defined?
findNextParamPosition() is defined in path.go at line 303.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free