Home / Function/ Match() — gin Function Reference

Match() — gin Function Reference

Architecture documentation for the Match() function in routergroup.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  94ed79e1_5b35_a5de_5dbb_31c84d8e5f90["Match()"]
  018f1037_5a3b_d88a_c8ba_70efaa627f40["handle()"]
  94ed79e1_5b35_a5de_5dbb_31c84d8e5f90 -->|calls| 018f1037_5a3b_d88a_c8ba_70efaa627f40
  6a02d456_ea59_53ed_7657_d6ad4ce99bca["returnObj()"]
  94ed79e1_5b35_a5de_5dbb_31c84d8e5f90 -->|calls| 6a02d456_ea59_53ed_7657_d6ad4ce99bca
  style 94ed79e1_5b35_a5de_5dbb_31c84d8e5f90 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routergroup.go lines 156–162

func (group *RouterGroup) Match(methods []string, relativePath string, handlers ...HandlerFunc) IRoutes {
	for _, method := range methods {
		group.handle(method, relativePath, handlers)
	}

	return group.returnObj()
}

Domain

Subdomains

Frequently Asked Questions

What does Match() do?
Match() is a function in the gin codebase.
What does Match() call?
Match() calls 2 function(s): handle, returnObj.

Analyze Your Own Codebase

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

Try Supermodel Free