Home / Function/ parseRoute() — fiber Function Reference

parseRoute() — fiber Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6c1d4745_edf7_f5dc_320c_f2116ceeca8d["parseRoute()"]
  bedec411_93e0_4024_219e_79649f60a9be["path.go"]
  6c1d4745_edf7_f5dc_320c_f2116ceeca8d -->|defined in| bedec411_93e0_4024_219e_79649f60a9be
  335397e4_8345_d52d_8c66_df0b58f90500["RoutePatternMatch()"]
  335397e4_8345_d52d_8c66_df0b58f90500 -->|calls| 6c1d4745_edf7_f5dc_320c_f2116ceeca8d
  style 6c1d4745_edf7_f5dc_320c_f2116ceeca8d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

path.go lines 243–254

func parseRoute(pattern string, customConstraints ...CustomConstraint) routeParser {
	parser := routeParser{}
	parser.parseRoute(pattern, customConstraints...)

	// Check if the route has too many parameters
	if len(parser.params) > maxParams {
		panic(fmt.Sprintf("Route '%s' has %d parameters, which exceeds the maximum of %d",
			pattern, len(parser.params), maxParams))
	}

	return parser
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free