Skip to content

Releases: TwiN/go-color

v1.4.1

09 Aug 02:22
f1518cb
Compare
Choose a tag to compare

What's Changed

  • refactor: Detects type switches that can benefit from type guard clause with variable by @GreyXor in #15

New Contributors

Full Changelog: v1.4.0...v1.4.1

v1.4.0

21 Nov 04:45
Compare
Choose a tag to compare

What's Changed

  • feat: Support non-string parameter by @TwiN in #10
  • feat: Support toggling colors on/off by @TwiN in #11
  • feat: Add automatic formatting and coloring function Autof by @TwiN in #12

Notice

The new color.Autof() is an experimental colored replacement for fmt.Sprintf, and it may be kept or removed based on your feedback.
Please vote on poll: Keep or Remove color.Autof?

Full Changelog: v1.3.0...v1.4.0

v1.3.0

20 Nov 01:01
Compare
Choose a tag to compare

What's Changed

  • feat: Support background colors by @TwiN in #9
    • Several new functions with pattern In<TEXT_COLOR>Over<BACKGROUND_COLOR> have been added
  • feat: Add alias "With" for Colorize

Full Changelog: v1.2.0...v1.3.0

v1.2.0

11 Oct 21:50
Compare
Choose a tag to compare

What's Changed

  • feat: Add Black and Underline by @TwiN in #7
  • legal: Change license from Apache 2 to MIT by @TwiN in #6
  • chore: Update Go to 1.19

Full Changelog: v1.1.0...v1.2.0

v1.1.0

25 Dec 03:57
Compare
Choose a tag to compare

Added the following functions:

  • color.InBold(s string)
  • color.InRed(s string)
  • color.InGreen(s string)
  • color.InYellow(s string)
  • color.InBlue(s string)
  • color.InPurple(s string)
  • color.InCyan(s string)
  • color.InGray(s string)
  • color.InWhite(s string)

v1.0.1

08 Oct 00:32
Compare
Choose a tag to compare

v1.0.0

09 Mar 23:30
fc49f7b
Compare
Choose a tag to compare

Also releasing v1.0.0, not because of a breaking change, but because the library is sufficiently stable.

v0.0.3

18 Nov 01:22
Compare
Choose a tag to compare
  • Updated to Go 1.15

v0.0.2

15 May 12:10
Compare
Choose a tag to compare
Add go.mod

v0.0.2-alpha

25 Mar 16:42
Compare
Choose a tag to compare

Added support for Windows