Code Monkey home page Code Monkey logo

rlite-go's Introduction

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

rlite-go's People

Contributors

seppo0010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eeertekin

rlite-go's Issues

try it in arm?

Hi,
I try to build run for arm, but I got error,how can I do?
GOOS=linux GOARCH=arm GOARM=5 go build main.go
go build github.com/seppo0010/rlite-go: build constraints exclude all Go files in /home/kevin/go/pkg/mod/github.com/seppo0010/[email protected]

test code:
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)

}

error installing

I tried installing elite-go using go get github.com/seppo0010/rlite-go but I get this error
screen shot 2016-05-21 at 10 16 48 am
I am trying this on Mac OS X 10.11 and with go 1.6

Installation fails

When trying to install with go get, I get the following error:

02:34:57 $ go get github.com/seppo0010/rlite-go
package github.com/seppo0010/rlite-go: no buildable Go source files in /home/user/Code/Go/src/github.com/seppo0010/rlite-go

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.