Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.05 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.05 KB

boxes

GoDoc Go Report Card

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>