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

Comments

@henrylee2cn
Copy link

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

This comment has been minimized.

Copy link

commented Oct 13, 2017

Very practical,I ding you!

@egonelbre

This comment has been minimized.

Copy link
Contributor

commented Oct 13, 2017

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

@xianlezheng

This comment has been minimized.

Copy link

commented Oct 13, 2017

or Size()

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

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
6 participants
You can’t perform that action at this time.