An open API service indexing awesome lists of open source software.

https://github.com/zemirco/couchdb

CouchDB client in Go
https://github.com/zemirco/couchdb

couchdb go

Last synced: 7 months ago
JSON representation

CouchDB client in Go

Awesome Lists containing this project

README

          

# couchdb

[![Build Status](https://travis-ci.org/zemirco/couchdb.svg)](https://travis-ci.org/zemirco/couchdb)
[![Go Report Card](https://goreportcard.com/badge/github.com/zemirco/couchdb)](https://goreportcard.com/report/github.com/zemirco/couchdb)
[![Coverage Status](https://coveralls.io/repos/github/zemirco/couchdb/badge.svg?branch=master)](https://coveralls.io/github/zemirco/couchdb?branch=master)
[![GoDoc](https://godoc.org/github.com/zemirco/couchdb?status.svg)](https://godoc.org/github.com/zemirco/couchdb)

CouchDB client for Go.

## Example

```go
package main

import (
"log"

"github.com/zemirco/couchdb"
)

func main() {
u, err := url.Parse("http://127.0.0.1:5984/")
if err != nil {
panic(err)
}
// create a new client
client, err := couchdb.NewClient(u)
if err != nil {
panic(err)
}
// get some information about your CouchDB
info, err := client.Info()
if err != nil {
panic(err)
}
log.Println(info)

}
```

More
[examples](https://github.com/zemirco/couchdb/blob/master/example/example.go).

## Test

`go test`

## License

MIT