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.

Makefile 332B

12345678910111213141516
  1. .PHONY: build
  2. build: rice test
  3. # Incrustate the static files
  4. cd pkg/handler ; rice embed-go
  5. CGO_ENABLED=0 go build -a -ldflags "-s -w" -o urlshortener cmd/urlshortener/main.go
  6. .PHONY: rice
  7. go get github.com/GeertJohan/go.rice/rice
  8. .PHONY: test
  9. test: lint
  10. go test ./...
  11. .PHONY: lint
  12. lint:
  13. gometalinter ./... --deadline=500s