summaryrefslogtreecommitdiff
path: root/example1
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-25 00:39:14 -0600
committerJeff Carr <[email protected]>2024-01-25 00:39:14 -0600
commit41fe4a4659d50d70a835224405490588019d24ff (patch)
treedd6677fb17d11a4233568fddf0d3a141434bba10 /example1
parente24c2c2eb3feb5083a74a9b2cb396bcbcb0ac52d (diff)
new homev0.13.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'example1')
-rw-r--r--example1/Makefile8
-rw-r--r--example1/go.mod3
-rw-r--r--example1/main.go2
3 files changed, 12 insertions, 1 deletions
diff --git a/example1/Makefile b/example1/Makefile
index 7b4c2b6..443064f 100644
--- a/example1/Makefile
+++ b/example1/Makefile
@@ -1,3 +1,11 @@
all:
# go build
GO111MODULE="off" go run main.go
+
+goimports:
+ goimports -w *.go
+
+redomod:
+ rm -f go.*
+ GO111MODULE= go mod init
+ GO111MODULE= go mod tidy
diff --git a/example1/go.mod b/example1/go.mod
new file mode 100644
index 0000000..0cd8c1f
--- /dev/null
+++ b/example1/go.mod
@@ -0,0 +1,3 @@
+module go.wit.com/lib/gui/shell/example1
+
+go 1.21.4
diff --git a/example1/main.go b/example1/main.go
index 6aa9399..f9998a5 100644
--- a/example1/main.go
+++ b/example1/main.go
@@ -9,7 +9,7 @@ import "os"
// import "github.com/davecgh/go-spew/spew"
-import "go.wit.com/shell"
+import "go.wit.com/lib/gui/shell"
func main() {
shell.Run("ls /tmp")