Go: unknown subcommand "mod"


(Abhimanyu Reddy Yanala) #1

I would like to access the Go Module it seems that mod sub command is not found on my system, i was trying to fix it but i couldn’t find proper solution… please help me with your answers.

am using Golang 10.4 version on Ubuntu 18.04


(Norbert Melzer) #2
  1. There is no golang version 10.4
  2. Modules are available since 1.11 as an experimental feature (conscious opt in via setting an environment variable) and enabled by default since 1.12.