aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go24
1 files changed, 24 insertions, 0 deletions
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)
+ }
+}