Using Go Playground
To learn the basics of go language you don't need to Install Go in your computer, you can start with Go Playground - https://go.dev/play/.
Install Go
If you prefer to install go programming language in our computer click the link https://go.dev/doc/install, download and install go for your preferred OS.
Editor of your choice
Neovim with lazyvim setup, here is how you can enable Go extras from lazyvim. If you want to learn more about this setup visit https://www.lazyvim.org/extras/lang/go
Open
nvim
and type:LazyExtras
-
Go to Disabled section and find
lang.go
language, e.g/lang.go
-
- Press
x
from your keyboard to enable the go language plugin
And you are all set, now you are ready to write your go programs.