something less than nothing

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-08 05:14:44 -06:00
parent 486dd8e0b2
commit 7789348247
3 changed files with 31 additions and 5 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!.gitignore
!Makefile
!*.go

View File

@ -2,11 +2,10 @@ all:
redomod:
rm -f go.*
go mod init
go mod tidy
GO111MODULE= go mod init
GO111MODULE= go mod tidy
filter-branch:
# git filter-branch --index-filter "git rm --cached --ignore-unmatch path_to_unwanted_file" --prune-empty --tag-name-filter cat -- --all
git filter-branch --tree-filter 'rm plugin.go' HEAD
git filter-branch --subdirectory-filter foodir -- --all
# git filter-branch --tree-filter 'rm plugin.go' HEAD
# git filter-branch --subdirectory-filter foodir -- --all

23
main.go Normal file
View File

@ -0,0 +1,23 @@
// This is a simple example
package "gui"
import (
"log"
"go.wit.com/gui/gui"
)
func test() {
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")
})
}