From 2a96a67a219b5dec171369a5afbddb7ce1994f1e Mon Sep 17 00:00:00 2001 From: xuu Date: Fri, 13 Oct 2017 16:41:48 -0600 Subject: [PATCH] changes for gofmt --- Makefile | 7 +++++-- debian/RELEASE | 2 +- main.go | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b8e4b47..e88d3c2 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ clean: rm -f $(BINARY) $(ROUTE_ASSET) $(ROUTE_FILES) fmt: $(SOURCE) $(SCHEMA_ASSET) $(ROUTE_ASSET) - find . -type f -name "*.go" -printf "%h\n"|sort -u|xargs go fmt + gofmt -w -l . go tool vet -composites=false . $(BINARY): $(SOURCE) $(ROUTE_ASSET) @@ -28,11 +28,14 @@ public/index.html: assets/index.html assets/ui/* echo ''; \ done; \ sed '1,/INSERT_TEMPLATES/d;/REMOVE_ASSET_START/,/REMOVE_ASSET_END/d' index.html) \ - | html-minifier --minify-css --collapse-whitespace > ../public/index.html + | html-minifier --minify-css --collapse-whitespace > ../public/index.html + public/app.js: assets/lib.js assets/app.js cat assets/lib.js assets/app.js | uglifyjs > public/app.js + public/paste.sh: assets/paste.sh cp assets/paste.sh public/paste.sh + public/style.css: assets/*.css cleancss assets/*.css > public/style.css diff --git a/debian/RELEASE b/debian/RELEASE index 45a4fb7..ec63514 100644 --- a/debian/RELEASE +++ b/debian/RELEASE @@ -1 +1 @@ -8 +9 diff --git a/main.go b/main.go index 8110469..7dad571 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ // // // swagger:meta -package main +package main // import "sour.is/x/paste" import ( "sour.is/x/httpsrv"