Content-Length: 271945 | pFad | http://github.com/baalimago/percentaverage

41 GitHub - baalimago/percentaverage: A tool which takes some input, finds all percentage-strings, then averages them.
Skip to content

A tool which takes some input, finds all percentage-strings, then averages them.

License

Notifications You must be signed in to change notification settings

baalimago/percentaverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

percentaverage

A tool which finds all precentages in a file and averages them. Matches x.y%, x,y%, -x.y%.

Test coverage: 77.4% 😌👏

Installation

go install github.com/baalimago/percentaverage@latest

Usage

echo "20,3% 19.9% -0.2%" | percentaverage && echo
go test ./... -cover | percentaverage -r `# This will output the percentage wihout a '%' sign`

Roadmap

  • Parse stdin
  • Hyperdrive the parsing for fun (fun not guaranteed)
  • Parse file from -f flag
  • Parse all files from directory using -d flag
  • Paralellized parsing
  • Glob parsing using -g flag
  • Glob parsing using multi-arguments

About

A tool which takes some input, finds all percentage-strings, then averages them.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/baalimago/percentaverage

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy