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

flag: method Get in interface Value #5383

Closed
gopherbot opened this issue May 1, 2013 · 2 comments
Closed

flag: method Get in interface Value #5383

gopherbot opened this issue May 1, 2013 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by raul.san@sent.com:

Add method Get to interface Value (http://golang.org/pkg/flag/#Value) to return its
value.

i.e. for boolValue:

func (b *boolValue) Get() interface{} { return bool(*b) }

This method is essential at working with sub-commands.
@rsc
Copy link
Contributor

rsc commented May 24, 2013

Comment 1:

We cannot change the Value interface for Go 1.2, but we could add a separate flag.Getter
interface and make the standard implementations implement it.
For Go 2 we could think about merging Getter into Value.

Labels changed: added go1.2, removed priority-triage.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Jun 27, 2013

Comment 2:

This issue was closed by revision 49b3301.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

3 participants