Go Commands - build: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


* [[Go Commands#Commands|Commands]]
* [[Go Commands#Commands|Commands]]
=Overview=
<pre>
go build
</pre>
builds the ''current package''.
A specific package can be also built:
<pre>
go build <package-path-string-literal>
</pre>
where the <tt><package-path-string-literal></tt> is the same literal used by the <tt>[[Go Keyword import|import]]<tt> statement.


=Building an Executable=
=Building an Executable=

Revision as of 06:31, 4 April 2016

Internal

Overview

go build

builds the current package.

A specific package can be also built:

go build <package-path-string-literal>

where the <package-path-string-literal> is the same literal used by the import statement.


Building an Executable

Building an Executable