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
andeya opened this issue Oct 13, 2017 · 4 comments
Closed

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

andeya opened this issue Oct 13, 2017 · 4 comments

Comments

@andeya
Copy link

andeya 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
@linlinjie
Copy link

Very practical,I ding you!

@egonelbre
Copy link
Contributor

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

@xianlezheng
Copy link

or Size()

@ianlancetaylor
Copy link
Contributor

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
Development

No branches or pull requests

6 participants