joinPaths() — gin Function Reference
Architecture documentation for the joinPaths() function in utils.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 2f8e0db4_5374_8272_e582_72af9787a26a["joinPaths()"] 72bc5f20_7e4a_ee57_c9ee_8ad1a2f875c7["lastChar()"] 2f8e0db4_5374_8272_e582_72af9787a26a -->|calls| 72bc5f20_7e4a_ee57_c9ee_8ad1a2f875c7 style 2f8e0db4_5374_8272_e582_72af9787a26a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
utils.go lines 135–145
func joinPaths(absolutePath, relativePath string) string {
if relativePath == "" {
return absolutePath
}
finalPath := path.Join(absolutePath, relativePath)
if lastChar(relativePath) == '/' && lastChar(finalPath) != '/' {
return finalPath + "/"
}
return finalPath
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does joinPaths() do?
joinPaths() is a function in the gin codebase.
What does joinPaths() call?
joinPaths() calls 1 function(s): lastChar.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free