From ad9bf788be5dedfc001ceae51512827596a0af04 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 31 Mar 2022 22:57:06 +0200 Subject: mrsmith_v0.0.1 --- main.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..fc21770 --- /dev/null +++ b/main.go @@ -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) + } +} -- cgit v1.2.3