Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mvrilo/boxes

Boxes is a simple ascii box builder.
https://github.com/mvrilo/boxes

ascii box cli go

Last synced: 28 days ago
JSON representation

Boxes is a simple ascii box builder.

Awesome Lists containing this project

README

        

# boxes

[![GoDoc](https://godoc.org/github.com/mvrilo/boxes?status.svg)](https://godoc.org/github.com/mvrilo/boxes)
[![Go Report Card](https://goreportcard.com/badge/github.com/mvrilo/boxes?_=1)](https://goreportcard.com/report/github.com/mvrilo/boxes?_=1)

Boxes is a simple ascii box builder.

## Example

```go
package main

import "github.com/mvrilo/boxes"

func main() {
box, _ := boxes.New().Padding(3).WriteString("hey there!")
println(string(box.Render()))
}
```

```
$ go run examples/box/main.go
.----------------.
| |
| hey there! |
| |
'----------------'

$ go run examples/canvas/main.go
.-----------------. .-----------------------.
| | | |
| hello world | | boxes is a simple |
| | | ascii box builder |
'-----------------' | |
| :) |
| |
'-----------------------'
```

## License

MIT

## Author

Murilo Santana <>