These are the steps which I have followed and it worked for me.
- Download Go from the download page and follow instructions. https://golang.org/dl/
- Install TDM-GCC compiler https://jmeubank.github.io/tdm-gcc/download/
- Make a new project folder and open it in VS code.
- 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