Original post

I created a static folder that contains index.html file, and in my file, I wrote:

package main

import (

func main() {
	http.Handle("/", http.FileServer(http.Dir("./static")))

	http.ListenAndServe(":8482", nil)

And it works fine upon exploring http://localhost:8482/

I tried to write the code as:

http.Handle("/static", http.FileServer(http.Dir("./static")))

But it fails upon exploring http://localhost:8482/static with 404 error