Skip to content
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

archive/zip: Reader Example not runnable on the website #34599

Closed
codyoss opened this issue Sep 29, 2019 · 1 comment
Closed

archive/zip: Reader Example not runnable on the website #34599

codyoss opened this issue Sep 29, 2019 · 1 comment

Comments

@codyoss
Copy link
Member

codyoss commented Sep 29, 2019

What version of Go are you using (go version)?

$ go version
go version go1.13.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOHOSTARCH="amd64"
GOHOSTOS="linux"

What did you do?

I navigated to zip.Reader example. I hit the Run button

What did you expect to see?

A working example

What did you see instead?

2009/11/10 23:00:00 open testdata/readme.zip: No such file or directory

@ALTree
Copy link
Member

ALTree commented Sep 29, 2019

Thanks for the report.

That Example works fine when run locally, it's just that it cannot be run on the playground. The run button should be disabled for these example, and this is a known issue: #9679 (website: don't show un-runnable examples as runnable)

ExampleReader is already mentioned there as one of the examples that don't work, so I'm closing here as a dup of #9679.

@ALTree ALTree closed this as completed Sep 29, 2019
@ALTree ALTree changed the title archive/zip: archive/zip: Reader Example not runnable on the website Sep 29, 2019
@golang golang locked and limited conversation to collaborators Sep 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants