/gocouchlib

A CouchDB Client for Go

Primary LanguageGoApache License 2.0Apache-2.0

gocouchlib

CouchDB Client for Go

Documentation

GoDoc for this project can be found at http://godoc.org/github.com/hiranya/gocouchlib

Installation

To install the latest version of gocouchlib

go get github.com/hiranya/gocouchlib

Examples

Example-1

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

Development

Code contributions are welcome. Please use gitflow workflow to submit your features or patches http://nvie.com/posts/a-successful-git-branching-model/

Testing

The test suite for gocouchlib can be executed using Docker and Fig (http://www.fig.sh/). Just type;

sudo fig up

License

Copyright (C) 2015 Hiranya Samarasekera hiranyas@gmail.com

This software is licensed under GNU GPL v3.0 http://www.gnu.org/licenses/