Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 815 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 815 Bytes

Colorit - Preview

Design preview for the Stats preview card component coding challenge

Welcome! 👋

Colorit is a Go Lang package that helps to easily alter the text color in a terminal environment.

How to install the package

To use this packge we assumed you already have "GO" installed on your computer.

Open the project you want to work with

~$ cd your-project-directory
~$ go mod init your-project-name
~$ go get -u github.com/asamoahe3/colorit

How to Use

   package main

   import(
    "fmt"
     "github.com/asamoahe3/colorit"
   )

   func main() {
	errMsg := "Something unexpected has occured."
    greetings := "Happy coding"

    fmt.Println(colorit.Red + errMsg)
    fmt.Println(colorit.Green + greetings)
}

Have fun building! 🚀