Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Convenience functions for buntdb
Go
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
ezbunt.go
ezbunt_test.go
go.mod
go.sum

README.md

ezbunt

ezbunt is a Go module for conveniently interacting with a buntdb. Functions include: creating a data file, storing simple data types, and complex types as JSON objects.

Documentation

godoc.org/github.com/racecarparts/ezbunt

Usage

via: go.mod (go module):

require (
    ...
    github.com/racecarparts/ezbunt v0.1.2
)

or via: go get

$ go get -u github.com/racecarparts/ezbunt

Example

package main

import (
    "fmt"
    ez "github.com/racecarparts/ezbunt"
)

func main() {
    ez := ez.New("data.file")
    ez.WriteKeyVal("my:1234", "sharona")

    pairs, err := ez.GetPairs("my")
    if err != nil {
        fmt.Println(err)
    }
    fmt.Println(pairs)

    val, err := ez.GetVal("my:1234")
    if err != nil {
        fmt.Println(err)
    }
    fmt.Println(val)
}
You can’t perform that action at this time.