Skip to content

Go package for styling terminal output with ANSI escape codes.

Notifications You must be signed in to change notification settings

gabisonia/tsartsi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tsartsi - ცარცი - Chalk 🖍️

Tsartsi (Georgian: ცარცი) means chalk, it is a lightweight Go package for styling terminal output with ANSI escape codes. It allows you to add colors, background colors, and text styles like bold or underline, making your console output visually appealing.

Purpose

This project is part of my journey to learn and practice Go. While it may not be a production-ready or professional-grade package, it serves as a hands-on way to explore Go's features, modules, and test writing.

Feel free to use it for learning purposes or experiment with it in your own projects!

Features

🎨 Foreground Colors: Red, Green, Blue, etc.

🖌️ Background Colors: White, Black, Yellow, etc.

✨ Text Styles: Bold, Underline, Invert, etc.

Installation

To install the Tsartsi package, run:

go get github.com/gabisonia/tsartsi

Usage

Here’s how to use Tsartsi in your Go projects:

package main

import (
	"github.com/gabisonia/tsartsi"
)

func main() {
	style := tsartsi.NewStyle(tsartsi.Red, tsartsi.BgWhite, tsartsi.Bold)
	style.Println("Hello, Tsartsi!")
}

Testing

This package includes a test suite to ensure everything works as expected.

To run the tests, use:

go test ./...

License

Tsartsi is fully free to use, modify, and distribute for any purpose, personal or commercial.

No attribution is required, but contributions and feedback are always welcome!

About

Go package for styling terminal output with ANSI escape codes.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages