Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 871 Bytes

README.mdown

File metadata and controls

39 lines (28 loc) · 871 Bytes

About Walk

Walk is a "Windows Application Library Kit" for the Go Programming Language.

Its focus is graphical user interfaces but there is some more stuff.

Setup

Make sure you have a working Go installation. See Getting Started

Now run go get github.com/lxn/walk

Using Walk

The preferred way to create GUIs with Walk is to use its declarative sub package, as illustrated in this small example:

package main

import . "github.com/lxn/walk/declarative"

func main() {
	MainWindow{
		Title:   "My Cool App",
		MinSize: Size{400, 300},
		Layout:  HBox{},
		Children: []Widget{
			HSpacer{},
			PushButton{Text: "Don't Click Me!", OnClicked: func() { panic("Ouch!") }},
			HSpacer{},
		},
	}.Run()
}

There are some examples that should get you started.