Home / Function/ Group() — gin Function Reference

Group() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bb0950a7_92e3_6165_a0b8_1b0015af3328["Group()"]
  47e23f5d_8954_660c_7ac2_9d1157a06909["combineHandlers()"]
  bb0950a7_92e3_6165_a0b8_1b0015af3328 -->|calls| 47e23f5d_8954_660c_7ac2_9d1157a06909
  cbe58699_430c_c923_47a5_d8708be7f7ab["calculateAbsolutePath()"]
  bb0950a7_92e3_6165_a0b8_1b0015af3328 -->|calls| cbe58699_430c_c923_47a5_d8708be7f7ab
  style bb0950a7_92e3_6165_a0b8_1b0015af3328 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routergroup.go lines 72–78

func (group *RouterGroup) Group(relativePath string, handlers ...HandlerFunc) *RouterGroup {
	return &RouterGroup{
		Handlers: group.combineHandlers(handlers),
		basePath: group.calculateAbsolutePath(relativePath),
		engine:   group.engine,
	}
}

Domain

Subdomains

Frequently Asked Questions

What does Group() do?
Group() is a function in the gin codebase.
What does Group() call?
Group() calls 2 function(s): calculateAbsolutePath, combineHandlers.

Analyze Your Own Codebase

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

Try Supermodel Free