diff --git a/README.md b/README.md index f5a8da4..ae4fa4c 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,14 @@ API, or this binding, to change. ### Using *go get* +Make sure nanomsg library is installed on your system and then run: + $ go get github.com/op/go-nanomsg +Or to use a local copy of nanomsg library for static linking run: + + $ CGO_CFLAGS="-I/path/to/nanomsg/include" CGO_LDFLAGS="-L/path/to/nanomsg/lib -lnanomsg" go get github.com/op/go-nanomsg + After this command *go-nanomsg* is ready to use. Its source will be in: $GOROOT/src/pkg/github.com/op/go-nanomsg