I want to print out the text message first and below the text, diplay the image.
But I am getting http: multiple response.WriteHeader calls
errors.
How do I serve iamges and text using one hadler in one single page?
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world!")
fp := path.Join("images", "gopher.png")
http.ServeFile(w, r, fp)
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":3000", nil)
}