gopherdata/gophernotes

reflect.Value.Convert: value of type reflect.Value cannot be converted to type http.FileSystem

your-olym opened this issue · 0 comments

I meet the question that

reflect.Value.Convert: value of type reflect.Value cannot be converted to type http.FileSystem 

which was seemd caused by

http.Handle("/js/", http.StripPrefix("/js/", http.FileServer(http.Dir("js"))))

by the way it's running in goland

image

image

├── static
│   └── js
│   └── index.js
├── templates
│   └── index.html