From 8cc48fb7f3159bf7ad8fb7ce45b6e0bee77eff65 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Mon, 27 Mar 2017 09:45:04 -0400 Subject: [PATCH] Improved readme and Makefile --- Makefile | 11 ++++++++++- readme.md | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4132521..7e4d109 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,23 @@ ######################################################################################## +# This Makefile generated by GoMakeGen 0.4.0 using next command: +# gomakegen --metalinter . + +######################################################################################## + .PHONY = fmt deps ######################################################################################## deps: + git config --global http.https://pkg.re.followRedirects true go get -v pkg.re/essentialkaos/ek.v7 fmt: find . -name "*.go" -exec gofmt -s -w {} \; -######################################################################################## +metalinter: + test -s $(GOPATH)/bin/gometalinter || (go get -u github.com/alecthomas/gometalinter ; $(GOPATH)/bin/gometalinter --install) + $(GOPATH)/bin/gometalinter --deadline 30s +######################################################################################## diff --git a/readme.md b/readme.md index caffe52..8cd035f 100644 --- a/readme.md +++ b/readme.md @@ -4,15 +4,23 @@ Package for working with [Librato Metrics](https://www.librato.com) API from Go ## Installation -```` +Before the initial install allows git to use redirects for [pkg.re](https://github.com/essentialkaos/pkgre) service (reason why you should do this described [here](https://github.com/essentialkaos/pkgre#git-support)): + +``` +git config --global http.https://pkg.re.followRedirects true +``` + +Make sure you have a working Go 1.6+ workspace ([instructions](https://golang.org/doc/install)), then + +``` go get pkg.re/essentialkaos/librato.v5 -```` +``` For update to latest stable release, do: -```` +``` go get -u pkg.re/essentialkaos/librato.v5 -```` +``` ## Examples