Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 258 Bytes
package main
import (
"fmt"
"log"
"net/http"
"time"
)
func main() {
time.Sleep(5 * time.Second)
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello from API")
})
log.Fatal(http.ListenAndServe(":80", nil))
}