boxes
Boxes is a simple ascii box builder.
Example
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 <mvrilo@gmail.com>