[command-line] What is a faster alternative to Python's http.server (or SimpleHTTPServer)?

1.0 includes a http server & util for serving files with a few lines of code.

package main

import (
    "fmt"; "log"; "net/http"
)

func main() {
    fmt.Println("Serving files in the current directory on port 8080")
    http.Handle("/", http.FileServer(http.Dir(".")))
    err := http.ListenAndServe(":8080", nil)
    if err != nil {
        log.Fatal("ListenAndServe: ", err)
    }
}

Run this source using go run myserver.go or to build an executable go build myserver.go

Examples related to command-line

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) Flutter command not found Angular - ng: command not found how to run python files in windows command prompt? How to run .NET Core console app from the command line Copy Paste in Bash on Ubuntu on Windows How to find which version of TensorFlow is installed in my system? How to install JQ on Mac by command-line? Python not working in the command line of git bash Run function in script from command line (Node JS)

Examples related to httpserver

How to start http-server locally What is a faster alternative to Python's http.server (or SimpleHTTPServer)? What is the Python 3 equivalent of "python -m SimpleHTTPServer" simple HTTP server in Java using only Java SE API Get and Set a Single Cookie with Node.js HTTP Server Build a simple HTTP server in C

Examples related to command-line-tool

Xcode 6.1 - How to uninstall command line tools? xcode-select active developer directory error What is a faster alternative to Python's http.server (or SimpleHTTPServer)? How to install Xcode Command Line Tools

Examples related to simplehttpserver

socket.error: [Errno 48] Address already in use Set up Python simpleHTTPserver on Windows What is a faster alternative to Python's http.server (or SimpleHTTPServer)? How do I shut down a python simpleHTTPserver? What is the Python 3 equivalent of "python -m SimpleHTTPServer"