Page MenuHomePhabricator
Paste P10386

A very lame http server
ActivePublic

Authored by Joe on Tue, Feb 11, 3:42 PM.
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", WaitServer)
http.ListenAndServe(":9099", nil)
}
func WaitServer(w http.ResponseWriter, r *http.Request) {
time.Sleep(15000000000)
fmt.Fprintln(w, "ok")
}