DOC: adds doc comments to exported functions
Adds comments to console.go exported functions.
This commit is contained in:
parent
9ac1601463
commit
7f47791c7b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue