Skip to content

Instantly share code, notes, and snippets.

@halink0803
Created April 4, 2018 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halink0803/1e075394bd15bd16ae1b294dc85f8964 to your computer and use it in GitHub Desktop.
Save halink0803/1e075394bd15bd16ae1b294dc85f8964 to your computer and use it in GitHub Desktop.
err = db.View(func(tx *bolt.Tx) error {
        return tx.ForEach(func(name []byte, _ *bolt.Bucket) error {
            fmt.Println(string(name))
            return nil
        })
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment