3 ms·
Indeed, the actual heavy lifting is done by the Go standard library; this line (https://github.com/eliben/static-server/blob/main/internal/server/server.go#L113
by eliben 3y ago
Indeed, the actual heavy lifting is done by the Go standard library; this line (https://github.com/eliben/static-server/blob/main/internal/server/server.go#L113 https://github.com/eliben/static-server/blob/main/internal/s...) is where the real magic happens (ignoring the logging middleware):
fileHandler := serveLogger(serveLog, http.FileServer(http.Dir(rootDir)))