File: README.md

package info (click to toggle)
golang-doozer 0.0~git20130909-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 224 kB
  • ctags: 283
  • sloc: makefile: 11
file content (58 lines) | stat: -rw-r--r-- 1,162 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Doozer Client

**Note:** [doozerd](https://github.com/4ad/doozerd) is the server.
This is the Go client driver for doozer.

## How to use

To install the Go client:

    $ go get github.com/4ad/doozer

To install the CLI client:

    $ go get github.com/4ad/doozer/cmd/doozer

To use:

    package main

    import (
    	"github.com/4ad/doozer"
    	"os"
    )

    func main() {
    	doozer, err := doozer.Dial("localhost:8046")

    	if err != nil {
    		panic(err)
    	}

    	myfile, _, _ := doozer.Get("/myfile", nil)
    	os.Stdout.Write(myfile)
    }

## Hacking

You can create a workspace for hacking on the doozer library and command
by doing the following:

    $ mkdir doozer
    $ cd doozer
    $ export GOPATH=`pwd`
    $ go get github.com/4ad/doozer/...

    # ...hack...hack..hack...
    $ vim src/github.com/4ad/doozer/cmd/doozer/help.go

    # rebuild ./bin/doozer
    $ go install github.com/4ad/doozer/...

## License and Authors

Doozer is distributed under the terms of the MIT
License. See [LICENSE](LICENSE) for details.

Doozer was created by Blake Mizerany and Keith Rarick.
Type `git shortlog -s` for a full list of contributors.