Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/altipla-consulting/box

Renders messages inside boxes in the terminal.
https://github.com/altipla-consulting/box

Last synced: about 1 month ago
JSON representation

Renders messages inside boxes in the terminal.

Awesome Lists containing this project

README

        

# box

[![Go Reference](https://pkg.go.dev/badge/github.com/altipla-consulting/box.svg)](https://pkg.go.dev/github.com/altipla-consulting/box)

Renders messages inside boxes in the terminal.

## Install

```shell
go get github.com/altipla-consulting/box
```

### Usage

```go
package main

import (
"github.com/altipla-consulting/box"
"github.com/logrusorgru/aurora"
)

func main() {
var o box.Box
o.AddLine("foo", "bar")
o.AddLine("before", aurora.Red("colored"), "after")
o.Render()
}
```

## Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using `make gofmt`.

## License

[MIT License](LICENSE)