make an init() function

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-05 21:20:40 -07:00
parent 999a8fd199
commit 030b9b1600
1 changed files with 4 additions and 0 deletions

4
gui.go
View File

@ -10,6 +10,10 @@ import _ "github.com/andlabs/ui/winmanifest"
const Xaxis = 0 // box that is horizontal const Xaxis = 0 // box that is horizontal
const Yaxis = 1 // box that is vertical const Yaxis = 1 // box that is vertical
func init() {
log.Println("gui.init() has been run")
}
func GuiInit() { func GuiInit() {
Data.buttonMap = make(map[*ui.Button]*GuiButton) Data.buttonMap = make(map[*ui.Button]*GuiButton)
Data.WindowMap = make(map[string]*GuiWindow) Data.WindowMap = make(map[string]*GuiWindow)