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
- Host: GitHub
- URL: https://github.com/mattkasun/tools
- Owner: mattkasun
- License: mit
- Created: 2025-07-17T19:06:04.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2026-01-12T21:38:40.000Z (6 months ago)
- Last Synced: 2026-01-20T23:14:48.724Z (5 months ago)
- Topics: config, go, hacktoberfest, logging
- Language: Go
- Homepage:
- Size: 1.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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