v0.0.3
Features:
- Add
fatal.OnExit
which allows a function to be registered that will run before callingos.Exit
. This is useful sincedefer
s are not called whenos.Exit
is called. color
now supportsNO_COLOR
. If theNO_COLOR
environment variable is set, no colors will be added.color
now strips reset codes from any strings instead of assuming the input will always be good. This way strings with reset codes in it won't prevent the whole string from being colored.
BREAKING CHANGES:
fatal.ShowStackTraces
is now a function that takes a bool to set whether or not stack traces are shown. Also stack traces are not shown by default now and must be explicitly enabled.