14:15:14 Thursday, October 8, 2022
New version v4. Breaking changes. Migrate from v3.
- Drop deprecated
Bleach
methods. UseReset
orClear
instead. - Drop deprecated
Brows
andBgBrows
methods, andBrownFg
andBrownBg
colors. UseYellow
variants instead. - Instead of
Aurora
interface introducedAurora
structure. - Instead of
Value
interface introducedValue
structure. - Implemented hyperlinks feature.
- added
Hyperlink
method - added
HyperlinkTarget
andHyperlinkParams
methods - added
HyperlinkParam
type,IsValidHyperlinkTarget
,IsValidHyperlinkParam
,HyperlinkID
,HyperlinkEscape
,HyperlinkUnescape
helper functions.
- added
- Introduced
Config
and related functions and methods, such asNewConfig
,WithColors
,WithHyperlinks
. - Removed
NewAurora
function, new functionNew
introduced. - Introduced global
DefaultColorizer
that used by package root methods. Sprintf
method now belongs to a colorizer and depends on its configurations. For package rootSprintf
it'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
Reset
orClear
instead ofBleach
. - Use
Yellow
instead ofBrows
. - Use
BgYellow
instead ofBgBrown
. - Use
YellowFg
instead ofBrownFg
. - Use
YellowBg
instead ofBrownBg
. - Use
New
instead 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
Yellow
andBgYellow
methods, mark Brow and BgBrown as deprecated Following specifications, correct name of the colors are yellow, but by historical reason they are called brown. Both, theYellow
and theBrown
methods (includingBg+
) represents the same colors. The Brown are leaved for backward compatibility until Go modules production release.- Additional formats
Faint
that is opposite to theBold
DoublyUnderline
Fraktur
Italic
Underline
SlowBlink
withBlink
aliasRapidBlink
Reverse
that is alias for theInverse
Conceal
withHidden
aliasCrossedOut
withStrikeThrough
aliasFramed
Encircled
Overlined
- Add AUTHORS.md file and change all copyright notices.
Reset
method to create clear value.Reset
method that replacesBleach
method. TheBleach
method 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