Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/altipla-consulting/box
- Owner: altipla-consulting
- License: mit
- Created: 2023-05-06T14:00:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-06T14:29:51.000Z (over 1 year ago)
- Last Synced: 2024-06-20T03:56:15.530Z (7 months ago)
- Language: Go
- Homepage: https://pkg.go.dev/github.com/altipla-consulting/box
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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)