1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
|