Go Concepts - Runtime: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


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


=Compiling an Executable=
=Compiling an Executable=


<font color=red>TODO, more here: <tt>go build</tt> creates an executable only if among the packages being compiled there is a <tt>main</tt> package, and the package contains a <tt>main()</tt> function.</font>
<font color=red>TODO, more here: <tt>go build</tt> creates an executable only if among the packages being compiled there is a <tt>main</tt> package, and the package contains a <tt>main()</tt> function.</font>

Revision as of 03:04, 22 March 2016

Internal

Environment Variables

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.