// Package main demonstrates the StreamAbove API for character-by-character// text streaming above an inline widget.//// To build and run://// go run ../../cmd/tui generate stream.gsx// go run .packagemainimport (
"fmt""os"tui"github.com/grindlemire/go-tui")
//go:generate go run ../../cmd/tui generate stream.gsxfuncmain() {
app, err := tui.NewApp(
tui.WithInlineHeight(3),
tui.WithRootComponent(StreamDemo()),
)
if err !=nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
defer app.Close()
if err := app.Run(); err !=nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}