Home

Awesome

rlite-go

golang bindings for rlite. For more information about rlite, go to rlite repository

Installation

First install rlite

$ go get github.com/seppo0010/rlite-go

Usage

Using 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)
}