Skip to content
/ boxes Public

Boxes is a simple ascii box builder.

License

Notifications You must be signed in to change notification settings

mvrilo/boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Boxes is a simple ascii box builder.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages