Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 883 Bytes

README.md

File metadata and controls

61 lines (40 loc) · 883 Bytes

MyHTTP

This tool displays the MD5 hash of the response body from the given list of URLs

Install

go get github.com/AgentNemo00/myhttp

or clone

git clone github.com/AgentNemo00/myhttp

Tests

go test ./...

Run tests and generate coverage

go test -v ./... -coverprofile=coverage.out -covermode=count

Generate HTML report

go tool cover -html=coverage.out -o coverage.html

Generate console report

go tool cover -func=coverage.out

Usage

go run cmd/myhttp/main.go example.com

or multiple urls by space separated

go run cmd/myhttp/main.go adjust.com example.com https://httpbin.org

you can adjust the parallel processes using the flag

go run cmd/myhttp/main.go -parallel=2 adjust.com example.com httpbin.org

the default is 10 process