fatih

color

Color package for Go (golang)

by fatih

Go

Go100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · Last activity 1mo ago
See all on GitHub →
mazkev

Summary 1. Preserve RGB component ordering in : compares colors by counting occurrences of each in an unordered map. 24-bit RGB colors store 5 consecutive attributes: . Treating RGB parameters as an unordered multiset caused different RGB colors whose R, G, B values are permutations of each other (e.g., and ) to incorrectly evaluate as equal (). Grouped RGB color sequences into compound components during comparison so that RGB component ordering is preserved, while still allowing independent attributes (such as and ) to compare equal regardless of insertion order. 2. Documentation fixes: Fixed the doc comment on which previously had a copy-paste header Fixed code examples in and doc comments to reference and instead of . 3. Tests: Added covering identical RGB colors, RGB permutations, foreground vs background RGB, and mixed attribute ordering.

mazkev · 2w ago
AdamMagued

Fixes #271 Summary Added helper to strip ANSI escape codes from formatted strings. Added comprehensive unit tests covering diverse escape code sequences and plain strings. Verified via container sandbox test suite.

AdamMagued · 1mo ago
Structured data for AI agents

Repository: fatih/color. Description: Color package for Go (golang) Stars: 8010, Forks: 650. Primary language: Go. Languages: Go (100%). License: MIT. Homepage: https://pkg.go.dev/github.com/fatih/color Topics: ansi, color, coloring, go, golang. Latest release: v1.19.0 (8mo ago). Open PRs: 20, open issues: 20. Last activity: 1mo ago. Community health: 42%. Top contributors: fatih, dependabot[bot], gregpoirson, pellared, n10v, sashamelentyev, bl-ue, zddhub, ataypamart, pattmax00 and others.