Go Concepts - Runtime: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
==<tt>GOPATH</tt>==
==<tt>GOPATH</tt>==


* External <tt>go help gopath</tt>.
* External: <tt>go help gopath</tt>.
 


==<tt>GOROOT</tt>==
==<tt>GOROOT</tt>==

Revision as of 03:05, 22 March 2016

Internal

Environment Variables

GOPATH

  • External: go help gopath.

GOROOT

Compiling an Executable

TODO, more here: go build creates an executable only if among the packages being compiled there is a main package, and the package contains a main() function.