Home / Function/ countSections() — gin Function Reference

countSections() — gin Function Reference

Architecture documentation for the countSections() function in tree.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  e19cf94c_1ecf_c320_02b9_29718a5a68bd["countSections()"]
  c26db86d_6014_ffb1_aad9_2c5f3b61998b["tree.go"]
  e19cf94c_1ecf_c320_02b9_29718a5a68bd -->|defined in| c26db86d_6014_ffb1_aad9_2c5f3b61998b
  style e19cf94c_1ecf_c320_02b9_29718a5a68bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tree.go lines 86–88

func countSections(path string) uint16 {
	return safeUint16(strings.Count(path, "/"))
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does countSections() do?
countSections() is a function in the gin codebase, defined in tree.go.
Where is countSections() defined?
countSections() is defined in tree.go at line 86.

Analyze Your Own Codebase

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

Try Supermodel Free