golang bindings for rlite. For more information about rlite, go to rlite repository
First install rlite
$ go get github.com/seppo0010/rlite-go
package main
import "github.com/seppo0010/rlite-go"
import "fmt"
func main () {
db, _ := rlite.Open(":memory:")
rlite.Command(db, []string{"SET", "key", "value"})
reply, err := rlite.Command(db, []string{"GET", "key"})
if err != nil {
// ...
}
if reply != "value" {
// ...
}
fmt.Println(reply)
}