Skip to content
/ clc Public

An (extremely) simple "calculator" for text files.

License

Notifications You must be signed in to change notification settings

dangelov/clc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaLCulator

clc is a simple calulator that reads an input file and prints the result.

Example

$ cat input.txt
# UNIT: USD
  1000 # Salary
  -320 # Rent
# 3 other expenses (comment)
 -1.99 # Netflix
 -0.99 # Apple Arcade
  -200 # Groceries
$ clc input.txt
TOTAL: 477.02 USD

Building

go build main.go

To cross-build for Windows: env GOOS=windows GOARCH=amd64 go build main.go

Todo

  • Section labels
  • Use case examples
  • More operations

About

An (extremely) simple "calculator" for text files.

Resources

License

Stars

Watchers

Forks

Languages