An open API service indexing awesome lists of open source software.

https://github.com/mattkasun/tools

set of utility functions
https://github.com/mattkasun/tools

config go hacktoberfest logging

Last synced: 5 months ago
JSON representation

set of utility functions

Awesome Lists containing this project

README

          

# tools
set of utility functions
* PrettyByteSize - returns a human readable string of int bytes

${999 => 999 \color{green}\space B}$
${2048 => 2.0 \color{green}\space KiB}$
${1058575 => 1.01 \color{green}\space MiB}$

## packages
### logging
slog helpers
* create logger with default, discard, text or json handler
* options to set output, loglevel, timeformat, include source, truncate source
### config
configuration helper
* reads yaml config file from XDG_CONFIG_HOME i.e. ~/.config/progname/config into user supplied struct
* value is cached for quicker subsequent lookups
### money
small currency package for handling money
* supports curreny values up to 100 trillon
* helper funcs for tax calculations