nocui/package-plugin.diff

86 lines
1.6 KiB
Diff
Raw Permalink Normal View History

2024-11-15 10:02:19 -06:00
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