Skip to content

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

@your-olym

Description

@your-olym

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions