๐Ÿ“ฆ helioloureiro / golorama

A Go implementation of project colorama to get terminal colored characters

โ˜… 3 stars โ‘‚ 0 forks ๐Ÿ‘ 3 watching โš–๏ธ BSD 3-Clause "New" or "Revised" License
๐Ÿ“ฅ Clone https://github.com/helioloureiro/golorama.git
HTTPS git clone https://github.com/helioloureiro/golorama.git
SSH git clone git@github.com:helioloureiro/golorama.git
CLI gh repo clone helioloureiro/golorama
Helio Loureiro Helio Loureiro Defined type Color c67b6df 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ .gitignore
๐Ÿ“„ go.sum
๐Ÿ“„ golorama.go
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

golorama

A Go implementation of project colorama to get terminal colored characters

Usage

First import the module to use:

go mod init
go import github.com/helioloureiro/golorama@latest

Next use it in your code like this:

package main

import (
    "fmt"
    
    "github/helioloureiro/golorama"
    )


func main() {
    fmt.Println(golorama.GetCSI(golorama.GREEN) + "Hello Green World" + golorama.Reset())
    golorama.PrintColorln(golorama.RED, "Hello Red World")
}