Dir() — gin Function Reference
Architecture documentation for the Dir() function in fs.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD adb46157_b9a6_bf11_eb76_7faaf4de48ee["Dir()"] 989161f2_e526_a83e_5efc_795d7f4d8548["fs.go"] adb46157_b9a6_bf11_eb76_7faaf4de48ee -->|defined in| 989161f2_e526_a83e_5efc_795d7f4d8548 style adb46157_b9a6_bf11_eb76_7faaf4de48ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fs.go lines 42–50
func Dir(root string, listDirectory bool) http.FileSystem {
fs := http.Dir(root)
if listDirectory {
return fs
}
return &OnlyFilesFS{FileSystem: fs}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Dir() do?
Dir() is a function in the gin codebase, defined in fs.go.
Where is Dir() defined?
Dir() is defined in fs.go at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free