Creating GUI with GOLANG
Описание
Creating GUI with GOLANG
this tutorial will show you how to simple GUI in GO Language :)
steps:
1. if you are using Windows, macOS, Linux or BSD and already have Go installed then the following command will do everything to get Fyne installed:
$ go get fyne.io/fyne
2. once that command completes you will have the full Fyne development package installed in your GOPATH.
3. create your first fyne app
gui.go
package main
import (
"fyne.io/fyne/app"
"fyne.io/fyne/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Hello")
w.SetContent(widget.NewVBox(
widget.NewLabel("Hello World!”),
widget.NewButton("Quit", func() {
a.Quit()
}),
))
w.ShowAndRun()
}
3. compile
$ go build gui.go
4. run
$./gui
5. If you prefer a light theme then just set the environment variable FYNE_THEME=light and you’ll get the window in light theme
there you go! now you can create GUI in: GO Language!
Reference:
https://fyne.io/develop/
thanks for watching, don’t forget to subscribe, activate the notification bell, like this video and also share it to support this channel to be able to continuously creates useful tutorials :)
leave us some comments if there is any questions and let us know what you think :)
also visit our website: http://procodecg.com
and blog: https://procodecg.wordpress.com
and follow us on Instagram: https://www.instagram.com/procodecg/
Twitter: https://twitter.com/procodecg
00F1FF
Рекомендуемые видео


















