This is a simple URL shortener
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
332 B

.PHONY: build
build: rice test
# Incrustate the static files
cd pkg/handler ; rice embed-go
CGO_ENABLED=0 go build -a -ldflags "-s -w" -o urlshortener cmd/urlshortener/main.go
.PHONY: rice
go get
.PHONY: test
test: lint
go test ./...
.PHONY: lint
gometalinter ./... --deadline=500s