Home / Function/ findParamLenForLastSegment() — fiber Function Reference

findParamLenForLastSegment() — fiber Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e448da38_7f9c_e7f4_07b9_47fdbbc2b234["findParamLenForLastSegment()"]
  bedec411_93e0_4024_219e_79649f60a9be["path.go"]
  e448da38_7f9c_e7f4_07b9_47fdbbc2b234 -->|defined in| bedec411_93e0_4024_219e_79649f60a9be
  2fd95810_2ada_ab11_b5e5_4579a806f839["findParamLen()"]
  2fd95810_2ada_ab11_b5e5_4579a806f839 -->|calls| e448da38_7f9c_e7f4_07b9_47fdbbc2b234
  style e448da38_7f9c_e7f4_07b9_47fdbbc2b234 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path.go lines 594–602

func findParamLenForLastSegment(s string, seg *routeSegment) int {
	if !seg.IsGreedy {
		if i := strings.IndexByte(s, slashDelimiter); i != -1 {
			return i
		}
	}

	return len(s)
}

Domain

Subdomains

Defined In

Called By

Frequently Asked Questions

What does findParamLenForLastSegment() do?
findParamLenForLastSegment() is a function in the fiber codebase, defined in path.go.
Where is findParamLenForLastSegment() defined?
findParamLenForLastSegment() is defined in path.go at line 594.
What calls findParamLenForLastSegment()?
findParamLenForLastSegment() is called by 1 function(s): findParamLen.

Analyze Your Own Codebase

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

Try Supermodel Free