chore: gofmt sources

This commit is contained in:
Christian Muehlhaeuser
2022-08-15 11:58:40 +02:00
parent a7b1d7c737
commit 1e1b5f716d
7 changed files with 107 additions and 112 deletions

View File

@@ -7,8 +7,7 @@ import "io"
//
// Example usage:
//
// p := NewProgram(model, WithInput(someInput), WithOutput(someOutput))
//
// p := NewProgram(model, WithInput(someInput), WithOutput(someOutput))
type ProgramOption func(*Program)
// WithOutput sets the output which, by default, is stdout. In most cases you
@@ -51,11 +50,11 @@ func WithoutCatchPanics() ProgramOption {
//
// Example:
//
// p := tea.NewProgram(Model{}, tea.WithAltScreen())
// if err := p.Start(); err != nil {
// fmt.Println("Error running program:", err)
// os.Exit(1)
// }
// p := tea.NewProgram(Model{}, tea.WithAltScreen())
// if err := p.Start(); err != nil {
// fmt.Println("Error running program:", err)
// os.Exit(1)
// }
//
// To enter the altscreen once the program has already started running use the
// EnterAltScreen command.