Home / Function/ Dir() — gin Function Reference

Dir() — gin Function Reference

Architecture documentation for the Dir() function in fs.go from the gin codebase.

Entity Profile

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

Analyze Your Own Codebase

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

Try Supermodel Free