Home / Function/ StaticFileFS() — gin Function Reference

StaticFileFS() — gin Function Reference

Architecture documentation for the StaticFileFS() function in routergroup.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  0608b30c_2537_13bb_6aa2_0fd1eaed4d72["StaticFileFS()"]
  0f475bc0_3758_8ab9_d4f4_b3dc013570f3["staticFileHandler()"]
  0608b30c_2537_13bb_6aa2_0fd1eaed4d72 -->|calls| 0f475bc0_3758_8ab9_d4f4_b3dc013570f3
  style 0608b30c_2537_13bb_6aa2_0fd1eaed4d72 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routergroup.go lines 175–179

func (group *RouterGroup) StaticFileFS(relativePath, filepath string, fs http.FileSystem) IRoutes {
	return group.staticFileHandler(relativePath, func(c *Context) {
		c.FileFromFS(filepath, fs)
	})
}

Domain

Subdomains

Frequently Asked Questions

What does StaticFileFS() do?
StaticFileFS() is a function in the gin codebase.
What does StaticFileFS() call?
StaticFileFS() calls 1 function(s): staticFileHandler.

Analyze Your Own Codebase

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

Try Supermodel Free