Categorygithub.com/mvrilo/boxes
modulepackage
0.0.0-20201205134430-1e70bbb16b16
Repository: https://github.com/mvrilo/boxes.git
Documentation: pkg.go.dev

# README

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 <[email protected]>

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Structs

Box is a container for a content.
No description provided by the author