17 lines
396 B
Go
17 lines
396 B
Go
package main
|
|
|
|
import (
|
|
"git.gophernest.net/azpect/TextEditor/internal/action"
|
|
"git.gophernest.net/azpect/TextEditor/internal/editor"
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
)
|
|
|
|
func main() {
|
|
|
|
lines := []string{"Hello world testing main.go", "line 2", "line 3", "line 4", "line 5"}
|
|
tea.NewProgram(
|
|
editor.NewModel(lines, action.Position{Line: 0, Col: 0}),
|
|
tea.WithAltScreen(),
|
|
).Run()
|
|
}
|