sampler-fork/component/block.go

13 lines
201 B
Go
Raw Normal View History

2019-03-16 23:59:28 +00:00
package component
import (
ui "github.com/gizak/termui/v3"
)
func NewBlock(title string, border bool) *ui.Block {
block := ui.NewBlock()
block.Title = title
block.Border = border
return block
}