aboutsummaryrefslogtreecommitdiff
path: root/becomings
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2019-05-28 14:20:08 +0100
committerNat Lasseter <user@4574.co.uk>2019-05-28 14:20:08 +0100
commit89d9dab4bdbe4c86194353c88481e1dd17517435 (patch)
tree7233acd3c572c7d46f24ded522c70bedf76fc1f7 /becomings
Initial Commit
Diffstat (limited to 'becomings')
-rw-r--r--becomings/Makefile2
-rw-r--r--becomings/test.go11
2 files changed, 13 insertions, 0 deletions
diff --git a/becomings/Makefile b/becomings/Makefile
new file mode 100644
index 0000000..8533307
--- /dev/null
+++ b/becomings/Makefile
@@ -0,0 +1,2 @@
+%.so: %.go
+ go build -buildmode=plugin -o $@ $<
diff --git a/becomings/test.go b/becomings/test.go
new file mode 100644
index 0000000..5e68e40
--- /dev/null
+++ b/becomings/test.go
@@ -0,0 +1,11 @@
+package main
+
+import "fmt"
+
+type becomer string
+
+func (b becomer) Become() {
+ fmt.Println("Success!")
+}
+
+var Become becomer