NewBox creates a new Box with the box.Single style preset applied.
()
| 55 | |
| 56 | // NewBox creates a new Box with the box.Single style preset applied. |
| 57 | func NewBox() *Box { |
| 58 | b := &Box{} |
| 59 | b.Style(Single) |
| 60 | return b |
| 61 | } |
| 62 | |
| 63 | // Copy returns a shallow copy of the Box so further mutations do not affect the original. |
| 64 | // |