Description: This is a basic URL checker written in GO. The app allows users to pass in a file name as a command-line argument, then it would extract all valid URLs and run status check on those urls.
Features
Display help panel by not include any argument
./linkDetector
Display current version using -v or -version flag
./linkDetector -v or -version
Check multiple files:
//For paths that contain space, simply wrap the path in quotes
./linkDetector check -f [file-path-1] [file-path-2] ... [file-path-nth]
Check all files in single or multiple directories:
//For paths that contain space, simply wrap the path in quotes
./linkDetector check -d [directory-path-1] [directory-path-2] ... [directory-path-nth]
Allows user to pass glob pattern as argument:
Example: Uses as a standalone, The command would be applied to the current directory of the executable file
./linkDetector -g *.html
Example: Uses with -d flag
//The glob pattern needs to be the last argument
./linkDetector check -d -g "Absolute\Path\To\Your\Directory" *.txt