You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
315 B
Go
25 lines
315 B
Go
3 years ago
|
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)
|
||
|
}
|
||
|
}
|