Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit bdfe946

Browse files
committed
Initial commit. Close #16
0 parents  commit bdfe946

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

main.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package main
2+
3+
import (
4+
"log"
5+
6+
"github.com/jroimartin/gocui"
7+
)
8+
9+
func main() {
10+
// Define UI
11+
g, err := gocui.NewGui(gocui.OutputNormal)
12+
if err != nil {
13+
log.Panicln(err)
14+
}
15+
defer g.Close()
16+
17+
// Configure global UI
18+
g.Highlight = true
19+
g.SelFgColor = gocui.ColorGreen
20+
21+
// Define the layout
22+
g.SetManagerFunc(uiLayout)
23+
24+
// Let's go dude!
25+
if err := g.MainLoop(); err != nil && err != gocui.ErrQuit {
26+
log.Panicln(err)
27+
}
28+
}
29+
30+
// Define the UI
31+
func uiLayout(g *gocui.Gui) error {
32+
return nil
33+
}

0 commit comments

Comments
 (0)