Skip to content

Simple cli tool for checking the md5 sum of a file or of all files in the directory recursively

Notifications You must be signed in to change notification settings

SergeyCherepiuk/md5all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MD5 All

Blazingly fast cli application for checking md5 sum of a specific file or directory

How to run it?

Print md5 sums to the terminal by running the binary file with the following command (you can replace ./go.mod with any other filename or path):

./cmd/main ./go.mod

Output:

./go.mod -> 451a40ce008a3493e35efdd45b224352

Or save the output onto the file:

./cmd/main ./go.mod > output.txt

Architecture

Inspiration for this small cli tool project is coming from this article about "Pipeline" concurrency pattern in Golang. In this article, the author implements a similar tool in a slightly different way. After reading the article, the decision to try building it myself was made. And here it is.

I decided to use fan-out + fan-in techniques to split the work among GOMAXPROCS workers (goroutines), and while it might be an overkill for a folder with just a couple of files, it certainly speeds up the process of checksumming large directories.

Concurrency model

About

Simple cli tool for checking the md5 sum of a file or of all files in the directory recursively

Topics

Resources

Stars

Watchers

Forks

Languages