From 88623131c626fafc84e113f65a9bbf25a28cfad4 Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Thu, 4 May 2017 14:48:58 +0200 Subject: [PATCH] build: Fix so 'go get' works. Thanks @Luit van Drongelen. Closes #9. --- README.rst | 9 +++++++-- gocollect.go | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 0dc9dce..e9fb5b2 100644 --- a/README.rst +++ b/README.rst @@ -27,8 +27,13 @@ Installing You may need to set up a go path first:: - mkdir -p ~/.local/go - export GOPATH=~/.local/go + mkdir -p ~/go + export GOPATH=~/go + +And check this out inside that:: + + git clone https://github.com/ossobv/gocollect \ + $GOPATH/src/github.com/ossobv/gocollect And install prerequisites:: diff --git a/gocollect.go b/gocollect.go index b98e449..4aa4829 100644 --- a/gocollect.go +++ b/gocollect.go @@ -3,7 +3,6 @@ package main import ( - "./gocollector" "bytes" "fmt" getopt "github.com/kesselborn/go-getopt" @@ -14,6 +13,8 @@ import ( "path" "strings" "time" + + "github.com/ossobv/gocollect/gocollector" ) // Initialized by -X ldflag. (Should be const, but is not allowed by the