matchScheme() — fiber Function Reference
Architecture documentation for the matchScheme() function in utils.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD ddde51f7_3b64_5169_7bae_2981adfb45b1["matchScheme()"] 5f252b75_33b5_0425_0ab1_e1b45c8382fe["utils.go"] ddde51f7_3b64_5169_7bae_2981adfb45b1 -->|defined in| 5f252b75_33b5_0425_0ab1_e1b45c8382fe style ddde51f7_3b64_5169_7bae_2981adfb45b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/cors/utils.go lines 11–15
func matchScheme(domain, pattern string) bool {
dScheme, _, dFound := strings.Cut(domain, ":")
pScheme, _, pFound := strings.Cut(pattern, ":")
return dFound && pFound && dScheme == pScheme
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does matchScheme() do?
matchScheme() is a function in the fiber codebase, defined in middleware/cors/utils.go.
Where is matchScheme() defined?
matchScheme() is defined in middleware/cors/utils.go at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free