CouchDB Client for Go
GoDoc for this project can be found at http://godoc.org/github.com/hiranya/gocouchlib
To install the latest version of gocouchlib
go get github.com/hiranya/gocouchlib
package main
import (
"fmt"
"github.com/hiranya/gocouchlib"
"net/url"
)
func main() {
s := &gocouchlib.Server{"http://localhost:5984",
url.UserPassword("testuser", "password"),
}
db := &gocouchlib.Database{"gocouch", s}
isExist, _ := db.Exists()
fmt.Println("DB Exists:", isExist)
}
Code contributions are welcome. Please use gitflow workflow to submit your features or patches http://nvie.com/posts/a-successful-git-branching-model/
The test suite for gocouchlib can be executed using Docker and Fig (http://www.fig.sh/). Just type;
sudo fig up
Copyright (C) 2015 Hiranya Samarasekera hiranyas@gmail.com
This software is licensed under GNU GPL v3.0 http://www.gnu.org/licenses/