Go to file
2023-12-08 18:18:20 -05:00
.idea Started Go Project 2023-12-07 11:34:00 -05:00
.gitignore added to gitignore 2023-12-08 18:12:37 -05:00
error.go completed check digit algorithm and file writing 2023-12-07 16:54:12 -05:00
go.mod added pterm for tui support 2023-12-08 16:43:59 -05:00
go.sum added pterm for tui support 2023-12-08 16:43:59 -05:00
LICENSE Initial commit 2023-12-07 09:51:22 -05:00
main.go changed progress to spinner 2023-12-08 13:28:15 -05:00
README.md updated readme for proper separation 2023-12-08 17:10:44 -05:00
test.txt completed check digit algorithm and file writing 2023-12-07 16:54:12 -05:00

checkdigitCalculator

This is a calculator written in Go to process a text file of a large list of UPCs calculating their Check Digits.

Instructions

Windows

Create Directory and "Install" Program

  1. Create a directory, that you will remember and is easy to to type, to copy the binary (checkdigitcalc.exe) into.
  2. Copy the binary into that directory.

Prepare Text File

  1. Open a Text Editor and Paste UPCs (taking care to remove any Alphabet characters).
  2. Save the file with any name you want ending in .txt or .csv in the directory where you put the program. (i.e. upcs.txt)

Run the Program

  1. Copy the location of the directory from File Explorer
  2. Open cmd.exe or PowerShell
  3. type "cd " (don't forget the space) and press Shift+Insert (or Right Click) and press Enter.
  4. Back in the command line program type checkdigitcalc.exe (I like to type check and then press tab).
  5. The program will ask for the name of the file. Type the name of the text file you created including the extension (.txt or .csv) (i.e. upcs.txt)
  6. When the program finishes, it will exit. Open the answer.txt file that was produced/rewritten by the program.