1 Star 6 Fork 3

Rick / http-downloader

加入 Gitee
与超过 800 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 703 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Rick 提交于 2021-08-25 09:36 . Report test result to Codacy (#106)
build: fmt test
export GOPROXY=https://goproxy.io
CGO_ENABLE=0 go build -ldflags "-w -s" -o bin/hd
build-linux: fmt lint
export GOPROXY=https://goproxy.io
CGO_ENABLE=0 GOOS=linux go build -ldflags "-w -s" -o bin/linux/hd
upx bin/linux/hd
test: fmt lint
go test ./... -coverprofile coverage.out
run:
go run main.go
fmt:
go fmt ./...
lint:
golint -set_exit_status=1 ./...
copy: build
sudo cp bin/hd /usr/local/bin/
init: gen-mock
gen-mock:
go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
mockgen -destination ./mock/mhttp/roundtripper.go -package mhttp net/http RoundTripper
update:
git fetch
git reset --hard origin/$(shell git branch --show-current)
Go
1
https://gitee.com/linuxsuren/http-downloader.git
git@gitee.com:linuxsuren/http-downloader.git
linuxsuren
http-downloader
http-downloader
master

搜索帮助