LordOfTrident / ansi-go

✨ ANSI escape sequences wrapper library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Contributors Stars Issues Pull requests


ansi-go

✨ ANSI escape sequences wrapper library for Go

Documentation · Report Bug · Request Feature


Table of contents

Introduction

Since i like to always reinvent the wheel, heres the 1000th wrapper library around ANSI escape sequences for Go.

Usage

Add this package to your project

$ go get github.com/LordOfTrident/ansi-go

And import it

package main

import "github.com/LordOfTrident/ansi-go"

func main() {
	style := ansi.Bold + ansi.LightMagenta

	ansi.Println(ansi.ClearScreen, ansi.Goto(1, 1), style, "Hello, world!")
}

Example

$ cd example
$ go build
$ ./example

Documentation

This library is very small and the code itself is pretty much documentation. Just look around the source files.

Bugs

If you find any bugs, please, create an issue and report them.



Go ANSI

Made with ❤️ love

(Back to top)

About

✨ ANSI escape sequences wrapper library for Go

License:MIT License


Languages

Language:Go 100.0%