summaryrefslogtreecommitdiff
path: root/examples/helloworld
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-01 15:43:50 -0600
committerJeff Carr <[email protected]>2024-01-01 15:43:50 -0600
commit4e7bbd89900a733593f0848778103c1cf1a7145d (patch)
tree22cd22124dd3ecba7c2a866b882d39aaf790d670 /examples/helloworld
parent53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff)
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'examples/helloworld')
-rw-r--r--examples/helloworld/Makefile14
-rw-r--r--examples/helloworld/main.go23
2 files changed, 0 insertions, 37 deletions
diff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile
deleted file mode 100644
index 961ed8c..0000000
--- a/examples/helloworld/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-run: build
- ./helloworld
-
-build-release:
- go get -v -u -x .
- go build
- ./helloworld
-
-build:
- GO111MODULE="off" go get -v -x .
- GO111MODULE="off" go build
-
-update:
- GO111MODULE="off" go get -v -u -x .
diff --git a/examples/helloworld/main.go b/examples/helloworld/main.go
deleted file mode 100644
index 06c1da5..0000000
--- a/examples/helloworld/main.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// This is a simple example
-package main
-
-import (
- "log"
- "go.wit.com/gui"
-)
-
-func main() {
- helloworld()
- // This is just a optional goroutine to watch that things are alive
- gui.Watchdog()
-}
-
-// This creates a window
-func helloworld() {
- myGui := gui.New().Default()
- myWindow := myGui.NewWindow("helloworld golang wit/gui window")
-
- myWindow.NewButton("hello", func () {
- log.Println("world")
- })
-}