I have installed the go language in my ubuntu using sudo apt install golang-go
.
It was successfully installed. When i run go version
I am getting go version go1.10.4 linux/amd64
but when i tried running go mod init projectName
I am getting the following error go: unknown subcommand "mod"
Do I need to install mod package or am i missing something? I have implemented the solution given by christophe in this forum but it didn't work for me.