diff --git a/console/console.go b/console/console.go index 9bbb2c5..d267d24 100644 --- a/console/console.go +++ b/console/console.go @@ -2,10 +2,11 @@ package console import ( "fmt" - ui "github.com/gizak/termui/v3" "log" "os" "time" + + ui "github.com/gizak/termui/v3" ) const ( @@ -38,10 +39,13 @@ func Init() { } } +// Close function calls Close from termui package, +// which closes termbox-go func Close() { ui.Close() } +// Exit function exits the program successfully func Exit(message string) { if len(message) > 0 { println(message)