diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-03-31 22:57:06 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-03-31 22:57:06 +0200 |
commit | ad9bf788be5dedfc001ceae51512827596a0af04 (patch) | |
tree | 3c1863e126893c47bbf5ce958324f5acda9a30a1 /main.go | |
download | smith-ad9bf788be5dedfc001ceae51512827596a0af04.tar.gz smith-ad9bf788be5dedfc001ceae51512827596a0af04.tar.bz2 smith-ad9bf788be5dedfc001ceae51512827596a0af04.tar.xz smith-ad9bf788be5dedfc001ceae51512827596a0af04.tar.zst smith-ad9bf788be5dedfc001ceae51512827596a0af04.zip |
mrsmith_v0.0.1
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +// SMITH ( // / +// main ( )/ / +// by salade )(/ / +// ________________ ( /) / +// ()__)____________))))) :^} / + +package main + +import ( + "github.com/rivo/tview" +) + +// #include "csrc/smith.h" +// #cgo LDFLAGS: -lsmith -L. +import "C" + +func main() { + ctogo := C.mr_smith() + box := tview.NewBox().SetBorder(true).SetTitle(C.GoString(ctogo)) + + if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { + panic(err) + } +} |