GithubHelp home page GithubHelp logo

go-gdbm's Introduction

go-gdbm Build Status

Go bindings for libgdbm, the GNU Database Manager library.

In essence, this package provides an API for managing simple string-based key-value stores.

Installation

To install this package, use the go get command:

$ go get github.com/cfdrake/go-gdbm

Documentation

The documentation for this package is hosted at godoc.org.

Example Usage

See gdbm_test.go for some code examples. The API is relatively reminiscent of the C API.

Contributors

License

See LICENSE file.

go-gdbm's People

Contributors

cfdrake avatar vbatts avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

go-gdbm's Issues

null terminated strings???

I hope it is ok to ask here. I am using your go-gdbm to update an existing db, however I have some issues with different formatting. The "test21" key was added via go. The entries starting with 1.1.1.1 are already there.
I need some help understanding why this is, and if it is even possible to generate such keys and values. I can't seem to add this null terminated(?) string.

[@ test]# gdbmtool /var/lib/test/test.db list
test21 value
1.1.1.1-xxxxxxxxxxxx-yyyyyyyyyyyyyy\000 \37777777747YLb\000\000\000\000
1.1.1.1-xxxxxxxxxxxx-zzzzzzzzzzzzzz\000 \37777777774ZLb\000\000\000\000

Allow to range over type *gdbm.Database

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.