summaryrefslogtreecommitdiff
path: root/cmds/helloworld
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/helloworld')
-rw-r--r--cmds/helloworld/Makefile14
-rw-r--r--cmds/helloworld/main.go25
2 files changed, 0 insertions, 39 deletions
diff --git a/cmds/helloworld/Makefile b/cmds/helloworld/Makefile
deleted file mode 100644
index 961ed8c..0000000
--- a/cmds/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/cmds/helloworld/main.go b/cmds/helloworld/main.go
deleted file mode 100644
index 5516340..0000000
--- a/cmds/helloworld/main.go
+++ /dev/null
@@ -1,25 +0,0 @@
-// This is a simple example
-package main
-
-import (
- "log"
- "git.wit.org/wit/gui"
-)
-
-func main() {
- // gui.Init()
- gui.Main(helloworld)
-}
-
-// This creates a window
-func helloworld() {
- var w *gui.Node
- gui.Config.Title = "helloworld golang wit/gui window"
- gui.Config.Width = 640
- gui.Config.Height = 480
-
- w = gui.NewWindow()
- w.NewButton("hello", func () {
- log.Println("world")
- })
-}