AgentNemo00 / myhttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Go 60.1%Language:HTML 39.9%