///////////////////////////////////////////////
//serve some text and an image
package main
import (
"net/http"
"time"
"math/rand"
"fmt"
)
var text = "Hi there %s!
The time is: %s.
Random number of the day: %d
"
var image = ""
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, text, r.URL.Path[1:], time.Now(), rand.Intn(100))
fmt.Fprintf(w, image)
})
http.ListenAndServe(":9000", nil)
}