http urls monitor.

Makefile 584B

123456789101112131415161718
  1. help: ## Show Help
  2. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
  3. dep: ## Get build dependencies
  4. go get -v -u github.com/codegangsta/gin
  5. go get -u github.com/swaggo/swag/cmd/swag
  6. build: ## Build the app
  7. go build -ldflags "-X main.apiVersion=1.0 -X 'main.gitCommit=`git rev-parse HEAD`' -X 'main.built=`date`'"
  8. doc: ## Generate doc for api
  9. swag init
  10. test: ## Launch tests
  11. go test -v ./...
  12. http: ## Run default http service with hot reload
  13. gin -p 8080 -a 8080 --immediate -b debug run http