Skip to content

proposal: expvar: add Delete #73814

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

Open
mhamza15 opened this issue May 21, 2025 · 2 comments · May be fixed by #73815
Open

proposal: expvar: add Delete #73814

mhamza15 opened this issue May 21, 2025 · 2 comments · May be fixed by #73815
Labels
LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool Proposal
Milestone

Comments

@mhamza15
Copy link

Proposal Details

In #13491, Map.Delete was added, but an equivalent Delete that operates on the default vars Map does not yet exist.

mhamza15 added a commit to mhamza15/go that referenced this issue May 21, 2025
Adds a `Delete` function to the expvar package to remove a named
exported variable. Calls `Map.Delete`.

Closes golang#73814
@mhamza15 mhamza15 linked a pull request May 21, 2025 that will close this issue
@gabyhelp
Copy link

Related Issues

Related Code Changes

Related Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gabyhelp gabyhelp added the LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool label May 21, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/675116 mentions this issue: expvar: add Delete function

@seankhliao seankhliao changed the title expvar: add Delete proposal: expvar: add Delete May 21, 2025
@gopherbot gopherbot added this to the Proposal milestone May 21, 2025
mhamza15 added a commit to mhamza15/go that referenced this issue May 21, 2025
Adds a `Delete` function to the expvar package to remove a named
exported variable. Calls `Map.Delete`.

Fixes golang#73814
@dmitshur dmitshur moved this to Incoming in Proposals May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool Proposal
Projects
Status: Incoming
Development

Successfully merging a pull request may close this issue.

3 participants