# go-colorable

> Colorable writer for Windows

Source: https://talira.ai/catalog/go-colorable-zxyx4svp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / terminal ui](https://talira.ai/categories/libraries/terminal-ui), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Yasuhiro Matsumoto](https://talira.ai/orgs/yasuhiro-matsumoto.md)

go-colorable is a Go package that gives Windows consoles ANSI colour: its writers translate ANSI escape sequences so coloured output from loggers such as [Logrus](https://talira.ai/catalog/logrus-qb6bhbyk.md) shows in colour instead of raw codes. Code that uses it still compiles and runs on other operating systems.

## Links

- GitHub: https://github.com/mattn/go-colorable
- Docs: https://pkg.go.dev/github.com/mattn/go-colorable

## Problems it solves

- my Go program's coloured log output shows escape codes on Windows
- show ANSI colours in the Windows console from a Go CLI
- make logrus colours work for users on Windows

## Features

- ANSI colour escape sequences on Windows consoles
- colourable stdout and stderr writers
- builds on non-Windows systems too

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.63, adoption 0.58, momentum 0.25, community 0.56, backing 0.30, extensibility 0.00.

- last commit 13 days ago
- 4 commits in the last 90 days
- latest release v0.1.16 54 days ago
- 819 GitHub stars
- 24 contributors
- accepts sponsorship (Patreon)
- backed by Yasuhiro Matsumoto

## Alternatives

- [Colorama](https://talira.ai/catalog/colorama-h5g60n84.md): Cross-platform coloured terminal text in Python
- [color (Go)](https://talira.ai/catalog/color-go-y7z3s2fy.md): Coloured terminal output for Go with ANSI escape codes

## Sources

[^1]: https://github.com/mattn/go-colorable/blob/master/LICENSE (checked 28 Nov 2026)
