First of all, I created an HTML file using Notepad ++ with this code:
<body>
<table>
<tr>
<td>Jill</td>
<td>Smith</td>
<td><img src="test.jpg" border=3 height=100 width=300 /></td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</body>
Below is the Go language Code for this :-
// * /
func rootHandler(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/" {
homeHandler(w, r)
} else {
log.Printf("rootHandler: Could not forward request for %s any further.", r.RequestURI)
errNotFound(w, r)
}
}
I want test.png should be loaded in browser but its not working.