package main import ( _ "fmt" "FRMS/internal/pkg/tui" ) type TUI interface { Start() } func NewTUI(ch chan error) TUI { return tui.NewDisplay(ch) } func main() { ch := make(chan error) t := NewTUI(ch) go t.Start() err := <-ch if err != nil { fmt.Println(err) } }