Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/go-color
🌈 Format colored text in your Go application.
https://github.com/ahmadrosid/go-color
Last synced: 22 days ago
JSON representation
🌈 Format colored text in your Go application.
- Host: GitHub
- URL: https://github.com/ahmadrosid/go-color
- Owner: ahmadrosid
- Created: 2021-10-09T05:02:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-11T13:05:31.000Z (about 3 years ago)
- Last Synced: 2024-06-20T14:28:32.821Z (5 months ago)
- Language: Go
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Go Color
Utility to print colored text in golang.
## Usage
```go
import "github.com/ahmadrosid/go-color/color"func main() {
println(color.Format(color.RED, "I'm red!"))
println(color.Format(color.BLUE, "I'm blue!"))
println(color.Format(color.GREEN, "I'm green!"))
println(color.Format(color.YELLOW, "I'm yellow!"))
println(color.Format(color.PURPLE, "I'm purple!"))
}
```## Example
![Go Color](/example.png)