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

Allow to range over type *gdbm.Database #1

Open
vbatts opened this issue Aug 24, 2012 · 1 comment
Open

Allow to range over type *gdbm.Database #1

vbatts opened this issue Aug 24, 2012 · 1 comment
Assignees

Comments

@vbatts
Copy link
Contributor

vbatts commented Aug 24, 2012

Hey there,
To be able to collect keys/values, some logic like

db, _ := gdbm.Open('"derp.db","c")

for k,v := range db {
   println(k)
   println(v)
}

Take care,
vb

@vbatts vbatts mentioned this issue Aug 24, 2012
Merged
@ghost ghost assigned cfdrake Aug 25, 2012
@peter-mogensen
Copy link

Just stumbled upon this ... Go 1.x does not allow you to define your own iterators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants