Looking for some examples to server static files with net/http package in Golang, I found the type Dir which implements FileSystem interface.
Some examples show You can server static files with the following:
http.Handle("/", http.FileServer(http.Dir("/tmp")))
What exactly is http.Dir("/tmp") ? It looks like a constructor function for FileSystem.