aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-03-31 22:57:06 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-03-31 22:57:06 +0200
commitad9bf788be5dedfc001ceae51512827596a0af04 (patch)
tree3c1863e126893c47bbf5ce958324f5acda9a30a1 /main.go
downloadsmith-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.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)
+ }
+}