Live data from Hacker News

Badger – A fast key-value store written natively in Go

open.dgraph.io

1–10 of 101 posts

Re: Badger – A fast key-value store written natively in Go

#3
post #2

How do I use it? there is zero docs on how to even get started, what the API is like(is there even one?) This could be worth all the peanuts in the world, but if the only way to learn how to use it, is read the Go source, very few people will bother.

There is a link to the docs on the github page.

https://godoc.org/github.com/dgraph-io/badger

Re: Badger – A fast key-value store written natively in Go

#4
post #2

How do I use it? there is zero docs on how to even get started, what the API is like(is there even one?) This could be worth all the peanuts in the world, but if the only way to learn how to use it, is read the Go source, very few people will bother.

Go projects typically use godoc to autogenerate documentation from comments, this has the added benefit that a single service can maintain updated docs for every open source go package in existence ex. https://godoc.org/

Re: Badger – A fast key-value store written natively in Go

#5
post #2

How do I use it? there is zero docs on how to even get started, what the API is like(is there even one?) This could be worth all the peanuts in the world, but if the only way to learn how to use it, is read the Go source, very few people will bother.

https://godoc.org/github.com/dgraph-io/badger/badger#example...

Re: Badger – A fast key-value store written natively in Go

#7

There's that word again, natively. Should just say written in Go. The native part is redundant.

I believe the author is using the term 'natively' here to describe the project being written purely in Go, rather than using CGO (i.e. being a wrapper to some database written in C).

I agree 'written purely in Go' would have been a better choice of words, though.

Re: Badger – A fast key-value store written natively in Go

#8
post #2

How do I use it? there is zero docs on how to even get started, what the API is like(is there even one?) This could be worth all the peanuts in the world, but if the only way to learn how to use it, is read the Go source, very few people will bother.

https://godoc.org/github.com/dgraph-io/badger/badger#example...

AH! I was looking in the docs/ dir, and found them to be completely missing. Thanks :)

Re: Badger – A fast key-value store written natively in Go

#10
post #7

There's that word again, natively. Should just say written in Go. The native part is redundant.

I believe the author is using the term 'natively' here to describe the project being written purely in Go, rather than using CGO (i.e. being a wrapper to some database written in C). I agree 'written purely in Go' would have been a better choice of words, though.

Or even "written in pure Go"
Post reply on HN