Skip to content

Instantly share code, notes, and snippets.

@bunnykek
Created February 8, 2024 10:56
Show Gist options
  • Save bunnykek/0b0de0df5d2f200e7e360cc350eb5a8b to your computer and use it in GitHub Desktop.
Save bunnykek/0b0de0df5d2f200e7e360cc350eb5a8b to your computer and use it in GitHub Desktop.
Installing fyne in Microsoft Windows Go lang

These are the steps which I have followed and it worked for me.

  1. Download Go from the download page and follow instructions. https://golang.org/dl/
  2. Install TDM-GCC compiler https://jmeubank.github.io/tdm-gcc/download/
  3. Make a new project folder and open it in VS code.
  4. run the below commands one by one
go mod init MODULE_NAME
go get fyne.io/fyne/v2@latest
go install fyne.io/fyne/v2/cmd/fyne@latest
go run fyne.io/fyne/v2/cmd/fyne_demo@latest

NOTE: Please note that the first run has to compile some C-code and can thus take longer than usual(took around 10 min for me). Subsequent builds reuse the cache and will be much faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment