diff options
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) + } +} |