module
Version:
v2.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Apr 16, 2015
License: Apache-2.0
Opens a new window with license information.
README
¶
go-etcd
![GoDoc](https://godoc.org/github.com/coreos/go-etcd/etcd?status.png)
Usage
The current version of go-etcd supports etcd v2.0+, if you need support for etcd v0.4 please use go-etcd from the release-0.4 branch.
package main
import (
"log"
"github.com/coreos/go-etcd/etcd"
)
func main() {
machines := []string{"http://127.0.0.1:2379"}
client := etcd.NewClient(machines)
if _, err := client.Set("/foo", "bar", 0); err != nil {
log.Fatal(err)
}
}
Install
go get github.com/coreos/go-etcd/etcd
License
See LICENSE file.
Directories
¶
Click to show internal directories.
Click to hide internal directories.