joinPaths() — gin Function Reference
Architecture documentation for the joinPaths() function in utils.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD b88c8d6d_c5bd_5d97_29d7_2d26be136294["joinPaths()"] 5bca33d6_0728_cd3b_708c_a59f93f5d952["utils.go"] b88c8d6d_c5bd_5d97_29d7_2d26be136294 -->|defined in| 5bca33d6_0728_cd3b_708c_a59f93f5d952 6e35eb9a_2fab_f088_0e74_93e725d7eb9a["lastChar()"] b88c8d6d_c5bd_5d97_29d7_2d26be136294 -->|calls| 6e35eb9a_2fab_f088_0e74_93e725d7eb9a style b88c8d6d_c5bd_5d97_29d7_2d26be136294 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
Defined In
Calls
Source
Frequently Asked Questions
What does joinPaths() do?
joinPaths() is a function in the gin codebase, defined in utils.go.
Where is joinPaths() defined?
joinPaths() is defined in utils.go at line 135.
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