go's version is this which is my favorite because a single http server serving static files is cool but it's better to program it to do what you want.
package main
import (
"net/http"
"os"
)
func main() {
if err := http.ListenAndServe(os.Args[1], http.FileServer(http.Dir(os.Args[2]))); err != nil {
panic(err)
}
}