Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mvrilo/boxes
- Owner: mvrilo
- License: mit
- Created: 2020-11-25T23:47:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-05T13:44:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-01T09:21:27.664Z (about 1 month ago)
- Topics: ascii, box, cli, go
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport "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 <>