Difference between revisions of "Go mod"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
It will create a <code>go.mod</code> file containing:
 
It will create a <code>go.mod</code> file containing:
 +
<pre>
 
  module YOUR_NAME
 
  module YOUR_NAME
  
 
  go 1.14
 
  go 1.14
 
+
</pre>
  
  

Revision as of 06:01, 29 April 2020

go mod init YOUR_NAME
go: creating new go.mod: module YOUR_NAME

It will create a go.mod file containing:

 module YOUR_NAME

 go 1.14


See also

Advertising: