News for hackers. Stuff that matters.
Re:Nweb: a tiny, safe web server (static pages only) by stock_toaster on Tuesday April 01, 2014 @12:13AM (#7506148)
or in go:

    package main

    import (
        "flag"
        "net/http"
    )

    var serveDir = flag.String("d", ".", "Directory to serve from")

    func main() {
        flag.Parse()
        panic(http.ListenAndServe("127.0.0.1:8000", http.FileServer(
            http.Dir(*serveDir))))
    }

There are no comments on this comment yet.