14:15:14 Thursday, October 8, 2022
New version v4. Breaking changes. Migrate from v3.
- Drop deprecated
Bleachmethods. UseResetorClearinstead. - Drop deprecated
BrowsandBgBrowsmethods, andBrownFgandBrownBgcolors. UseYellowvariants instead. - Instead of
Aurorainterface introducedAurorastructure. - Instead of
Valueinterface introducedValuestructure. - Implemented hyperlinks feature.
- added
Hyperlinkmethod - added
HyperlinkTargetandHyperlinkParamsmethods - added
HyperlinkParamtype,IsValidHyperlinkTarget,IsValidHyperlinkParam,HyperlinkID,HyperlinkEscape,HyperlinkUnescapehelper functions.
- added
- Introduced
Configand related functions and methods, such asNewConfig,WithColors,WithHyperlinks. - Removed
NewAurorafunction, new functionNewintroduced. - Introduced global
DefaultColorizerthat used by package root methods. Sprintfmethod now belongs to a colorizer and depends on its configurations. For package rootSprintfit's theDefaultColorizer.
Performance for all methods is almost the same. But for color- and
format-methods aurora now takes less allocations. But, unfortunately, for
Sprintf it takes more allocations.
- Use
ResetorClearinstead ofBleach. - Use
Yellowinstead ofBrows. - Use
BgYellowinstead ofBgBrown. - Use
YellowFginstead ofBrownFg. - Use
YellowBginstead ofBrownBg. - Use
Newinstead ofNewAurora. - Use
New(WithColors(false))to disable colors. - Use
New(WithHyperlinks(false))to disable hyperlinks.
16:05:02 Thursday, July 2, 2020
Change license from the WTFPL to the Unlicense due to pkg.go.dev restriction.
15:39:40 Wednesday, April 17, 2019
- Bright background and foreground colors
- 8-bit indexed colors
Index,BgIndex - 24 grayscale colors
Gray,BgGray YellowandBgYellowmethods, mark Brow and BgBrown as deprecated Following specifications, correct name of the colors are yellow, but by historical reason they are called brown. Both, theYellowand theBrownmethods (includingBg+) represents the same colors. The Brown are leaved for backward compatibility until Go modules production release.- Additional formats
Faintthat is opposite to theBoldDoublyUnderlineFrakturItalicUnderlineSlowBlinkwithBlinkaliasRapidBlinkReversethat is alias for theInverseConcealwithHiddenaliasCrossedOutwithStrikeThroughaliasFramedEncircledOverlined
- Add AUTHORS.md file and change all copyright notices.
Resetmethod to create clear value.Resetmethod that replacesBleachmethod. TheBleachmethod was marked as deprecated.
14:25:49 Friday, August 18, 2017
- LICENSE.md changed to LICENSE
- fix email in README.md
- add "no warranty" to README.md
- set proper copyright date
16:59:28 Tuesday, November 8, 2016
- Rid out off sync.Pool
- Little optimizations (very little)
- Improved benchmarks