web-hasher

command module
v0.0.0-...-2fccd27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2019 License: MIT Imports: 5 Imported by: 0

README

Web Hasher

GoDoc GoReportCard

This simple program prints the MD5 hashes of the contents of the URLs provided as arguments.

It also uses a pool of goroutines to perform the hashing process of the contents of each URL independently.

Run program

Example usage:

go get -u github.com/msandim/web-hasher
$GOPATH/bin/web-hasher sapo.pt

You can use an optional flag parallel to specify how many goroutines should be created and maintained in the pool of goroutines. If not specified, the default stays at 10.

$GOPATH/bin/web-hasher -parallel=3 sapo.pt google.com facebook.com publico.pt

Run tests

go test -cover ./...  

Documentation

Overview

This entry point is responsible for parsing the arguments/flags, executing the program using the remaining packages and printing them.

Directories

Path Synopsis
Package hasher includes functions and structures to ease the process of hashing the contents present in an URL.
Package hasher includes functions and structures to ease the process of hashing the contents present in an URL.
Package workerpool implements a simple goroutine pool.
Package workerpool implements a simple goroutine pool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL