-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when trying to serve http with embedded assets #43761
Comments
|
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For asking questions, see:
|
Thanks, that worked. Perhaps this should produce a more helpful error, this one is a bit cryptic. |
there's https://go-review.googlesource.com/c/go/+/283852/ for not panicking |
Duplicate of #43682 |
(See related proposal #43698.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
What did you do?
I created a folder called 'assets' containing only
index.html
with the following content:I then ran
go1.16beta1 run .
What did you expect to see?
No panic and the static site being served on localhost:48784.
What did you see instead?
This panic:
The text was updated successfully, but these errors were encountered: