title: go-lang simple webserver : serve static image
body: <p>I want to write a simple webserver in go that does the following: when i go to <a href="http://example.go:8080/image">http://example.go:8080/image</a>, it returns a static image.
  I'm following an example i found <a href="http://golang.org/doc/articles/wiki/">here</a>. In this example they implement this method:</p>
  
  <pre><code>func handler(w http.ResponseWriter, r *http.Request) {
      fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
  }
  </code></pre>
  
  <p>and then refer to it here :</p>
  
  <pre><code>...
  ...
  http.HandleFunc("/", handler)
  </code></pre>
  
  <p>Now, what i wanna do is serve an image instead of writing to the string.
  How would i go about that?</p>