项目作者: mvrilo

项目描述 :
Boxes is a simple ascii box builder.
高级语言: Go
项目地址: git://github.com/mvrilo/boxes.git
创建时间: 2020-11-25T23:47:56Z
项目社区:https://github.com/mvrilo/boxes

开源协议:MIT License

下载


boxes

GoDoc
Go Report Card

Boxes is a simple ascii box builder.

Example

  1. package main
  2. import "github.com/mvrilo/boxes"
  3. func main() {
  4. box, _ := boxes.New().Padding(3).WriteString("hey there!")
  5. println(string(box.Render()))
  6. }
  1. $ go run examples/box/main.go
  2. .----------------.
  3. | |
  4. | hey there! |
  5. | |
  6. '----------------'
  7. $ go run examples/canvas/main.go
  8. .-----------------. .-----------------------.
  9. | | | |
  10. | hello world | | boxes is a simple |
  11. | | | ascii box builder |
  12. '-----------------' | |
  13. | :) |
  14. | |
  15. '-----------------------'

License

MIT

Author

Murilo Santana <mvrilo@gmail.com>