changes for gofmt

This commit is contained in:
xuu 2017-10-13 16:41:48 -06:00
parent 5f5d0541e1
commit 2a96a67a21
3 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,7 @@ clean:
rm -f $(BINARY) $(ROUTE_ASSET) $(ROUTE_FILES) rm -f $(BINARY) $(ROUTE_ASSET) $(ROUTE_FILES)
fmt: $(SOURCE) $(SCHEMA_ASSET) $(ROUTE_ASSET) 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 . go tool vet -composites=false .
$(BINARY): $(SOURCE) $(ROUTE_ASSET) $(BINARY): $(SOURCE) $(ROUTE_ASSET)
@ -29,10 +29,13 @@ public/index.html: assets/index.html assets/ui/*
done; \ done; \
sed '1,/INSERT_TEMPLATES/d;/REMOVE_ASSET_START/,/REMOVE_ASSET_END/d' index.html) \ 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 public/app.js: assets/lib.js assets/app.js
cat assets/lib.js assets/app.js | uglifyjs > public/app.js cat assets/lib.js assets/app.js | uglifyjs > public/app.js
public/paste.sh: assets/paste.sh public/paste.sh: assets/paste.sh
cp assets/paste.sh public/paste.sh cp assets/paste.sh public/paste.sh
public/style.css: assets/*.css public/style.css: assets/*.css
cleancss assets/*.css > public/style.css cleancss assets/*.css > public/style.css

2
debian/RELEASE vendored
View File

@ -1 +1 @@
8 9

View File

@ -24,7 +24,7 @@
// //
// //
// swagger:meta // swagger:meta
package main package main // import "sour.is/x/paste"
import ( import (
"sour.is/x/httpsrv" "sour.is/x/httpsrv"