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

Proposal: Add sync.Map.Len() method #22247

Closed
henrylee2cn opened this issue Oct 13, 2017 · 4 comments
Closed

Proposal: Add sync.Map.Len() method #22247

henrylee2cn opened this issue Oct 13, 2017 · 4 comments

Comments

@henrylee2cn
Copy link

@henrylee2cn henrylee2cn commented Oct 13, 2017

I suggest adding the Len method to the version of sync.Map in the Go1.9 version.

func (m *Map) Len() int

The following is a reference:

https://github.com/henrylee2cn/goutil/blob/master/map.go#L604

@gopherbot gopherbot added this to the Proposal milestone Oct 13, 2017
@gopherbot gopherbot added the Proposal label Oct 13, 2017
@linlinjie
Copy link

@linlinjie linlinjie commented Oct 13, 2017

Very practical,I ding you!

@egonelbre
Copy link
Contributor

@egonelbre egonelbre commented Oct 13, 2017

Duplicate of #20680. Other method suggestions in 1. #21199.

@xianlezheng
Copy link

@xianlezheng xianlezheng commented Oct 13, 2017

or Size()

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Oct 13, 2017

Closing as duplicate.

@golang golang locked and limited conversation to collaborators Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.