Skip to content

v0.0.3

Compare
Choose a tag to compare
@cszatmary cszatmary released this 18 Sep 23:41
· 13 commits to master since this release
229ef2f

Features:

  • Add fatal.OnExit which allows a function to be registered that will run before calling os.Exit. This is useful since defers are not called when os.Exit is called.
  • color now supports NO_COLOR. If the NO_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.