Skip to content

io/ioutil: WriteFile example returns "No such file or directory" because testdata does not exist #32916

Closed
@KolesnikDmitriy

Description

@KolesnikDmitriy

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

$ go version
go1.12.6

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
https://play.golang.org/

What did you do?

Run example in https://golang.org/pkg/io/ioutil/#WriteFile

What did you expect to see?

Expected file created

What did you see instead?

2009/11/10 23:00:00 open testdata/hello: No such file or directory

Program exited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.SuggestedIssues that may be good for new contributors looking for work to do.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions