Examples using... http.Dir()

Recent
StripPrefix returns a handler that serves HTTP requests by removing the given prefix from the request URL's Path and invoking the handler h. StripPrefix handles a request for a path that doesn't begin with prefix by replying with an HTTP 404 not found error.
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root.
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root.
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root.