From 3e5eca40e3715cfddee6bfafc9c814779a9b0e70 Mon Sep 17 00:00:00 2001 From: Bart Schuurmans Date: Fri, 8 Nov 2019 10:40:53 +0100 Subject: [PATCH] Don't install/update go-bindata from //go:generate Instead, add build instructions to the README. --- README.md | 6 ++++++ handlers/views.go | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f335743..f7a3a71 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ A URL shortener and (maybe) a pastebin server for our #ru community. +## Build instructions + +- `go get -u github.com/go-bindata/go-bindata/...` +- `go generate ./...` +- `go build ./cmd/rushlink` + ## Libraries Use standard-Go-libraries if the job can be done with those. As of now, these diff --git a/handlers/views.go b/handlers/views.go index 74b9acb..2328f6d 100644 --- a/handlers/views.go +++ b/handlers/views.go @@ -1,7 +1,5 @@ package handlers -//go:generate go get github.com/go-bindata/go-bindata -//go:generate go get -u github.com/go-bindata/go-bindata/... //go:generate go-bindata -pkg $GOPACKAGE -prefix ../assets ../assets/... import (