something less than nothing
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
486dd8e0b2
commit
7789348247
|
@ -0,0 +1,4 @@
|
|||
*
|
||||
!.gitignore
|
||||
!Makefile
|
||||
!*.go
|
9
Makefile
9
Makefile
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue