summaryrefslogtreecommitdiff
path: root/package-plugin.diff
diff options
context:
space:
mode:
Diffstat (limited to 'package-plugin.diff')
-rw-r--r--package-plugin.diff85
1 files changed, 85 insertions, 0 deletions
diff --git a/package-plugin.diff b/package-plugin.diff
new file mode 100644
index 0000000..25e4a4f
--- /dev/null
+++ b/package-plugin.diff
@@ -0,0 +1,85 @@
+diff --git a/Makefile b/Makefile
+index 356b929..351f9e9 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,6 +4,10 @@ all: plugin
+ plugin:
+ go build -v -x -buildmode=plugin -o ../nocui.so
+
++# for testing custom golang
++custom:
++ GO111MODULE=off go build -v -work
++
+ check-git-clean:
+ @git diff-index --quiet HEAD -- || (echo "Git repository is dirty, please commit your changes first"; exit 1)
+
+diff --git a/action.go b/action.go
+index a4e5ee6..98c2636 100644
+--- a/action.go
++++ b/action.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ /*
+ a simple function to handle widget actions
+diff --git a/args.go b/args.go
+index 88fcf53..2b61e2b 100644
+--- a/args.go
++++ b/args.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ /*
+ this enables command line options from other packages like 'gui' and 'log'
+diff --git a/event.go b/event.go
+index 9fea1b0..0649aec 100644
+--- a/event.go
++++ b/event.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ /*
+ import (
+diff --git a/main.go b/main.go
+index b5dff47..26933b7 100644
+--- a/main.go
++++ b/main.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ /*
+ This is reference code for toolkit developers
+diff --git a/stdin.go b/stdin.go
+index fc2f2e5..c6c3148 100644
+--- a/stdin.go
++++ b/stdin.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ import (
+ "bufio"
+diff --git a/structs.go b/structs.go
+index 5331219..25e21bb 100644
+--- a/structs.go
++++ b/structs.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ import (
+ "go.wit.com/toolkits/tree"
+diff --git a/tree.go b/tree.go
+index 57f283a..a81bbc4 100644
+--- a/tree.go
++++ b/tree.go
+@@ -1,4 +1,4 @@
+-package main
++package plugin
+
+ /*
+ This is reference code for toolkit developers