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

io/ioutil: mark functions as deprecated #47265

Closed
iateadonut opened this issue Jul 17, 2021 · 2 comments
Closed

io/ioutil: mark functions as deprecated #47265

iateadonut opened this issue Jul 17, 2021 · 2 comments
Labels
Documentation FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.

Comments

@iateadonut
Copy link

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

go version go1.16.5 linux/amd64

What did you do?

go doc ioutil tempdir

What did you expect to see?

a message that the function ioutil TempDir() has been moved to os MkdirTemp()

I'm wondering, because it looks like it's not even possible to make the update and a pull request.

@seankhliao seankhliao changed the title ioutil tempdir() docs do not say that it has been renamed to os.MkdirTemp() io/ioutil: mark functions as deprecated Jul 17, 2021
@seankhliao seankhliao added the NeedsFix The path to resolution is known, but the work has not been done. label Jul 17, 2021
@fzipp
Copy link
Contributor

fzipp commented Jul 17, 2021

See the comments on https://golang.org/cl/284777

@seankhliao seankhliao added NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. and removed NeedsFix The path to resolution is known, but the work has not been done. labels Jul 17, 2021
@ianlancetaylor
Copy link
Contributor

In the Go 1.16 release ioutil.TempDir was not changed. In the upcoming Go 1.17 release ioutil.TempDir just calls os.MkdirTemp, and the doc comment says so.

So I don't think anything needs to change here.

@golang golang locked and limited conversation to collaborators Jul 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

5 participants