31 lines
478 B
Markdown
31 lines
478 B
Markdown
<div style="text-align: center;">
|
|
<img src="assets/osui.png" width="170px" />
|
|
<h1>A Component-based TUI library written in Go</h1>
|
|
<img src="assets/osui.gif" />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
# Hello World
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"github.com/orus-dev/osui"
|
|
"github.com/orus-dev/osui/ui"
|
|
)
|
|
|
|
func main() {
|
|
app := ui.Div(
|
|
ui.Text("Hello, World!")
|
|
)
|
|
|
|
screen := osui.NewScreen(app)
|
|
screen.Run()
|
|
}
|
|
```
|
|
|
|
# [Documentation](https://github.com/orus-dev/osui/wiki)
|